Wez Furlong
d3b653e97b
Added:
...
proto bool PDOStatement::closeCursor()
Closes the cursor, leaving the statement ready for re-execution.
The purpose of the function is to free up the connection to the server so that
other queries may be issued, but leaving the statement in a state that it can
be re-executed.
This is implemented either as an optional driver specific method (allowing for
maximum efficiency), or as the generic PDO fallback if no driver specific
function is installed.
The PDO generic fallback is semantically the same as writing the following code
in your PHP script:
do {
while ($stmt->fetch())
;
if (!$stmt->nextRowset())
break;
} while (true);
2005-07-09 03:52:41 +00:00
Ilia Alshanetsky
5fe5da90ea
Safer way of allowing 'blank' user/pass.
...
# Thanks Wez.
2005-07-09 02:53:07 +00:00
foobar
60ce60d395
show ugly full path for failed redirected tests
2005-07-09 02:41:19 +00:00
foobar
15e772ce13
- No need to use convert_to_string_ex() when dealing with strings
2005-07-09 00:59:49 +00:00
foobar
fcee086982
- Fixed bug #33588 (LDAP: RootDSE query not possible).
2005-07-09 00:46:45 +00:00
Ilia Alshanetsky
0b1931a8ff
Fix needed for PostgreSQL driver to allow $user & $pass to be supplied via
...
DSN as NULL.
2005-07-08 23:33:35 +00:00
foobar
c0d7215b81
Sanitazione
2005-07-08 21:46:23 +00:00
Wez Furlong
6ee00c8199
fix leak
2005-07-08 20:45:19 +00:00
Marcus Boerger
ca59b1158e
- Regenerate using re2c 0.9.8
2005-07-08 20:38:13 +00:00
Marcus Boerger
8d743e70e0
- std not needed -> avoid warning
2005-07-08 20:35:41 +00:00
Marcus Boerger
c1717ed8e6
- Fix *printf(%lld) under windows
2005-07-08 20:19:38 +00:00
Wez Furlong
7976182b94
Fix Bug #33111
2005-07-08 19:28:52 +00:00
Wez Furlong
168b6500fd
Fix #33618
2005-07-08 19:25:37 +00:00
Wez Furlong
6377c0ccca
Fix PECL #4753
2005-07-08 19:05:57 +00:00
Antony Dovgal
38e4fb09e0
fix tsrm build
2005-07-08 18:16:46 +00:00
Wez Furlong
512af63a63
rewrite original names to our preferred format
2005-07-08 17:01:20 +00:00
Wez Furlong
dec54a98fa
generated file
2005-07-08 17:00:48 +00:00
Wez Furlong
38a02b6244
For named-parameter-to-named-parameter rewrites, we need to map the original
...
names to the new names.
2005-07-08 17:00:28 +00:00
Ilia Alshanetsky
2301d93156
Some of us don't have PostgreSQL 8.0 :)
2005-07-08 16:20:13 +00:00
Ilia Alshanetsky
bf020f87e1
Missing bit of the previous patch.
2005-07-08 16:17:04 +00:00
Ilia Alshanetsky
046635075b
Fixed compiler warning.
2005-07-08 16:06:05 +00:00
Wez Furlong
529d8177fe
Add early support for native prepared statements in pgsql.
...
Note that some tests now fail; if we can't resolve this in time for the beta,
the prepare code should be disabled (I'll add a flag for this later today).
2005-07-08 15:27:34 +00:00
Wez Furlong
8f31f0cfaa
Fix a shutdown order issue I saw in the pgsql driver. Hope this doesn't mess
...
up something in the OCI driver; I think I've been here before.
2005-07-08 15:25:15 +00:00
Wez Furlong
206c7b8372
And the generated version of the parser
2005-07-08 15:24:42 +00:00
Wez Furlong
ab1ba644db
add a bit of a hack to cater for pgsql prepared statements.
...
These are effectively named statements with strong constraints on the naming
format. We cater for this in a fairly generic way: allow a driver to replace
the format string we use to generate names from positional parameters. In
addition, if that format is set, we always force a rewrite from regular names
to the strongly enforced names.
2005-07-08 15:24:21 +00:00
Wez Furlong
057e1973c7
and as a result, need to update the expected data
2005-07-08 15:21:43 +00:00
Wez Furlong
8e30a80733
we declare the column as NOT NULL, so inserting NULL is not a good idea.
2005-07-08 15:20:18 +00:00
Antony Dovgal
eb7dc34bfb
make use of T token
2005-07-08 12:39:51 +00:00
Antony Dovgal
592a0835fa
fix #33597 (setcookie() "expires" date format doesn't comply with RFC)
2005-07-08 12:30:24 +00:00
Antony Dovgal
39379b8f58
rename php_format_date() to date_format()
...
add wrapper for date_format() to use it in other extensions
2005-07-08 12:26:30 +00:00
Antony Dovgal
d705522bbe
fix #33614 (memory leak in new strftime())
2005-07-08 10:23:33 +00:00
Dmitry Stogov
76a447c900
Fixed HTTP basic authentication headers during subrequsts to xsd files
2005-07-08 09:36:28 +00:00
foobar
a7e85b3c07
Make sure we get a WARNING and not an ERROR here :)
2005-07-08 08:53:25 +00:00
foobar
c17e7e896e
fix test when session.save_handler is "user"
2005-07-08 07:57:47 +00:00
foobar
7f7c80babf
fix test when session.save_handler is "user"
2005-07-08 07:48:57 +00:00
Dmitry Stogov
3fea0b7b8c
Fixed support for <any> in base type of extension
2005-07-08 07:16:56 +00:00
b8bcdbc5f6
ChangeLog update
2005-07-08 05:38:53 +00:00
Wez Furlong
49c1882837
Add a PDO_ATTR_STRINGIFY_FETCHES attribute, which is used to convert integer or
...
floating point values into strings during fetch. This is a compatibility hack
for drivers that return native types rather than string representations.
We use this flag in the test suite to persuade postgres tests to pass.
2005-07-08 04:13:00 +00:00
Ilia Alshanetsky
ef7bd06657
Added pg_fetch_all_columns() function to fetch all values of a column from
...
a result cursor.
2005-07-08 00:40:32 +00:00
foobar
71d28a82cf
- Fixed stupid bug in PHP_INSTALL_HEADERS() macro: "foo bar" != foo bar
...
- ext/date/lib/timelib_config.h is also installed now
2005-07-07 23:18:22 +00:00
Antony Dovgal
b2141b04d2
do not set error_code to HY000 when there was NO error
...
reset both handle & statement error codes to 0
2005-07-07 23:03:22 +00:00
Antony Dovgal
b0e700524f
free parameter when requested to do so
2005-07-07 23:02:22 +00:00
Ilia Alshanetsky
5156c7b38f
1st set of fixes to make tests work with MySQL
...
# Additional changes pending
2005-07-07 18:49:58 +00:00
Ilia Alshanetsky
e7b930ea9a
Make prepared statements obey buffering flag in MySQL.
2005-07-07 17:53:34 +00:00
Dmitry Stogov
bcd201f522
Fixed SIGSEGV on decoding <any> elements
2005-07-07 17:29:25 +00:00
Wez Furlong
da7d537d49
populate the new dbh->driver field.
...
Implement PDO_ATTR_DRIVER_NAME.
2005-07-07 17:08:01 +00:00
Ilia Alshanetsky
22896664a8
Fixed memory leak
2005-07-07 16:27:46 +00:00
Wez Furlong
294a44a9cb
add an attribute for returning the driver name
2005-07-07 16:24:51 +00:00
Dmitry Stogov
f51e1c2064
Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods). Now empty($obj[...]) works proper but in addition it may call offsetGet() method.
2005-07-07 16:09:55 +00:00
Dmitry Stogov
345e0255b5
Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods)
2005-07-07 16:07:09 +00:00