1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 09:18:02 +01:00
Commit Graph

110 Commits

Author SHA1 Message Date
Michael Wallner
5a8f03175f fiy double slash 2014-09-15 09:46:00 +02:00
Michael Wallner
debf050947 bitbucket issue #7: pq\Result::fetchAllCols(col_idx_or_name) 2014-09-15 09:45:52 +02:00
Michael Wallner
6dc0521ba8 ping server and eventually reset conn on wakeup 2014-09-13 08:56:29 +02:00
Michael Wallner
280761d6fe fix package.xml 2014-09-12 16:57:42 +02:00
Michael Wallner
344e81d34f php_pq_type.h 2014-09-12 16:55:25 +02:00
Michael Wallner
dde388e274 update tests 2014-09-12 16:52:39 +02:00
Michael Wallner
359b3471d6 refactor auto conversion
add default connection property, for pq\Result->$autoConvert:
pq\Connection->$defaultAutoConvert

add autp conversion constants:
* pq\Result::CONV_BOOL
* pq\Result::CONV_INT
* pq\Result::CONV_FLOAT
* pq\Result::CONV_SCALAR (includes all previous)
* pq\Result::CONV_ARRAY
* pq\Result::CONV_DATETIME
* pq\Result::CONV_ALL (includes all, default)
2014-09-12 16:42:03 +02:00
Michael Wallner
218002ba90 refactor type conversion 2014-09-12 14:39:06 +02:00
Michael Wallner
d613997b30 add default propoerties to connection
For pq\Result:
pq\Connection->$defaultFetchType

For pq\Transaction:
pq\Connection->$defaultTransactionIsolation
pq\Connection->$defaultTransactionReadonly
pq\Connection->$defaultTransactionDeferrable
2014-09-12 10:52:18 +02:00
Michael Wallner
2805a4d1f8 avoid adding a ref to the object of the iterator actually living inside
that object
2014-09-12 07:25:24 +02:00
Michael Wallner
a04c771813 fix possible invalid free and a leak 2014-09-11 16:41:18 +02:00
Michael Wallner
6e672843c6 fix test 2014-09-11 16:40:46 +02:00
Michael Wallner
0a542746ba fix --without-pq-postgresql 2014-09-11 16:39:57 +02:00
Michael Wallner
6bc532fef1 administrativa 2014-09-11 15:29:48 +02:00
Michael Wallner
a1dd22ffd4 fix bitbucket issue #2 2014-09-11 15:29:36 +02:00
Michael Wallner
c5e31d5d4f unregister eventhandler 2014-07-14 18:21:46 +02:00
Michael Wallner
7e633cc0dd unlisten support 2014-07-14 18:02:57 +02:00
Michael Wallner
85d42a9baa use php_pq_callback_recurse 2014-07-14 13:28:47 +02:00
Michael Wallner
c48a4a7f5d fix test for newer internal datetime format 2014-07-14 13:28:30 +02:00
Michael Wallner
bf2e263195 zts and 5.6 fixes 2014-05-23 11:29:30 +02:00
Michael Wallner
9255d2d54b add cursor support 2014-04-04 15:50:42 +02:00
Michael Wallner
316c62ff10 fix test for 9.3+ 2014-04-04 15:49:45 +02:00
Anatol Belski
a4c00b0761 fix version macros name 2013-10-15 17:32:59 +02:00
Michael Wallner
3f5dbab5c1 r0.4.0 2013-05-15 08:12:33 +02:00
Michael Wallner
569c22fcb5 test Statement::bind() 2013-05-14 14:41:15 +02:00
Michael Wallner
a4dced008a fix Statement::descAsync; add Result::desc() 2013-05-14 14:30:53 +02:00
Michael Wallner
de42b70bed version 2013-05-14 13:56:36 +02:00
Michael Wallner
ec79f18c30 typo 2013-05-14 13:56:26 +02:00
Michael Wallner
0bce4e6693 moar tests 2013-05-14 13:50:22 +02:00
Michael Wallner
63e95273b8 always provide a property zval 2013-05-14 13:12:44 +02:00
Michael Wallner
88440266c0 type converters 2013-05-14 13:09:23 +02:00
Michael Wallner
ee121d2b99 add simple array param serialization 2013-05-12 10:14:12 +02:00
Michael Wallner
a869bf6f1b r0.3.0 2013-05-03 15:07:10 +02:00
Michael Wallner
f4decb22c9 test fix; build fix; meta data 2013-05-01 13:57:41 +02:00
Michael Wallner
e830226915 typo 2013-04-29 16:26:16 +02:00
Michael Wallner
cd5d3cdafd test 2013-04-29 14:24:05 +02:00
Michael Wallner
8f0022e027 type coercion for the array parser 2013-04-29 14:23:56 +02:00
Michael Wallner
9e37136f3b array parser 2013-04-29 11:25:18 +02:00
Michael Wallner
e5a91b5de3 typo: oid of bool is 16, not 18 2013-04-29 11:24:05 +02:00
Michael Wallner
a5adaca46a prepare 0.2.0 2013-04-25 10:14:41 +02:00
Michael Wallner
17e6dcce1f better datetime handling 2013-04-24 17:45:52 +02:00
Michael Wallner
fad4fe6a60 extended result type handling with catalog/pg_type.h 2013-04-24 12:24:54 +02:00
Michael Wallner
b762068714 use the same method signature in fetchCol() and bind() 2013-04-19 11:43:49 +02:00
Michael Wallner
377250ea43 fix fetchCol to return true/false and pass value int pass-by-ref param 2013-04-19 11:04:56 +02:00
Michael Wallner
6a0af039bb better type handling for bool/double params 2013-04-19 10:33:25 +02:00
Michael Wallner
5aa292d5bc no gc for now 2013-04-15 12:45:49 +02:00
Michael Wallner
4be7248e55 transform event handlers to zvals;
ignore gc for now, until sorted out
2013-04-15 10:53:44 +02:00
Michael Wallner
6c83802195 implemented get_properties() object handler 2013-04-13 17:55:44 +02:00
Michael Wallner
9f5cecf26b split source 2013-03-22 15:35:01 +01:00
Michael Wallner
c566b350f1 fix zend_object_iterator.key with PHP-5.5 2013-03-21 17:31:20 +01:00