Commit Graph

297 Commits

Author SHA1 Message Date
Antony Dovgal
9503b966ec MFH: fix #39564 (PDO::errorInfo() returns inconsistent information when sqlite3_step() fails) 2006-11-27 12:14:09 +00:00
Antony Dovgal
8d2406f448 add missing ifdef 2006-10-04 13:02:36 +00:00
Ilia Alshanetsky
92c3cfd81f Additional expand_filepath() checks 2006-09-16 18:30:03 +00:00
Nuno Lopes
868b219a28 use relative paths, so that we dont break the lcov reports 2006-09-16 14:17:36 +00:00
Hannes Magnusson
413de3f4a5 Removed duplicated entry 2006-09-09 21:14:05 +00:00
Ilia Alshanetsky
b4da7e6672 Added missing file entry 2006-08-14 16:34:24 +00:00
Ilia Alshanetsky
e8f30d4502 Upgraded bunbled SQLite lib to 3.3.7 2006-08-14 16:15:29 +00:00
Edin Kadribasic
bbf97549b8 Remove pecl includes (Steph), except pdo_odbc which will remain broke 2006-05-11 21:43:59 +00:00
Pierre Joye
dbf2a5c65c - document the --with-pdo-sqlite[=dir] 2006-05-03 11:12:54 +00:00
Wez Furlong
30f98ae77b set min pdo dep to 1.0.3, which will be the new pecl release 2006-05-02 02:43:11 +00:00
Wez Furlong
7614368f8a prep for pecl release 2006-05-02 02:32:40 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
foobar
8d63360fc4 MFH:- Fixed bug #35377 (undefined reference to "fdatasync") 2005-12-31 00:56:06 +00:00
Antony Dovgal
c92ae847c7 add missing skipif conditions
fix existing ones
2005-12-21 11:42:06 +00:00
Ilia Alshanetsky
3450841dbe Updated libsqlite in ext/pdo_sqlite to 3.2.8. 2005-12-20 15:33:03 +00:00
Ilia Alshanetsky
5961160f95 Proper error handling for persistent connections. 2005-12-20 14:50:12 +00:00
Ilia Alshanetsky
4e09db1dbf Fixed possible memory corruption. 2005-12-19 16:33:46 +00:00
foobar
3e669bc950 MFH: nuke php3 legacy 2005-12-06 02:28:41 +00:00
Wez Furlong
17683295e4 switch to package2.xml 2005-12-04 22:34:26 +00:00
Ilia Alshanetsky
58c05c04f4 Regen files so they work properly with gcov. 2005-12-04 17:25:05 +00:00
Antony Dovgal
5a606e0be3 use || instead of -o to support weird systems with old test 2005-11-27 22:59:54 +00:00
Wez Furlong
85ad81736c set to 1.0 stable. 2005-11-26 20:50:08 +00:00
foobar
366832fbd2 MFH: Fixed wrong usage of ZEND_EXTENSION_API_NO (these are not Zend exts :) 2005-11-25 16:01:41 +00:00
Wez Furlong
0a865c89c5 prep for release 2005-11-24 22:33:20 +00:00
Antony Dovgal
1e93bb16e4 fix #35336 (crash on PDO::FETCH_CLASS + __set()) 2005-11-23 11:15:11 +00:00
Wez Furlong
38c5dd2929 prep for PECL release 2005-11-01 03:16:36 +00:00
Wez Furlong
dbc09d3325 Closes PECL Bug #5633.
Build tested with 5.0.x as PECL, 5.1 as PECL and 5.1 static
2005-11-01 03:13:32 +00:00
Ilia Alshanetsky
8b91c8f32e ZTS test fix 2005-10-18 00:17:27 +00:00
Antony Dovgal
6df490d0ca MFH: nuke warning 2005-10-03 23:48:21 +00:00
Marcus Boerger
b47525e508 - TSRM fix 2005-09-29 19:57:13 +00:00
Ilia Alshanetsky
ef04eea493 Touch generated file 2005-09-26 19:34:09 +00:00
Ilia Alshanetsky
846b0826ab MFH: upgraded bundled libsqlite3 to version 3.2.7 2005-09-26 19:33:26 +00:00
Wez Furlong
57641c166f reinstate this fix for building against PHP 5.0.x.
This works fine against PHP 5.1 too; if you revert this, you'd better have an
awesome technical reason, or I'll remove your karma.
2005-09-25 02:28:42 +00:00
foobar
2352850c52 Revert the "fix". It works fine when you use PHP_5_1 2005-09-24 23:33:58 +00:00
foobar
1536082186 fix typo 2005-09-24 23:23:25 +00:00
Wez Furlong
4fb5b322ee 99% certain that this fixes PECL #5366 and PECL #5391. 2005-09-24 19:15:23 +00:00
Wez Furlong
3905ce46d9 Refs #34630 2005-09-24 18:55:56 +00:00
Ilia Alshanetsky
4dff36f6b4 MFH: Allow overloading of PDO constructor. 2005-09-20 19:52:24 +00:00
Wez Furlong
497c7714e6 update manifest 2005-09-11 05:46:13 +00:00
Wez Furlong
77d3a41f8a update package.xml files and version numbers, in anticipation of a big bunch of releases. 2005-09-11 05:27:30 +00:00
Wez Furlong
a55c4799aa MFH: reset the statement when closeCursor() is called. 2005-09-11 05:00:12 +00:00
Ilia Alshanetsky
084ab84411 Fixed compiler warning 2005-09-05 01:20:52 +00:00
Ilia Alshanetsky
f02aa075cb Upgraded bundled SQLite library for PDO:SQLite to 3.2.5 2005-08-28 16:54:26 +00:00
Ilia Alshanetsky
c6aae12cc1 Upgraded bundled SQLite library for PDO:SQLite to 3.2.5 (step 1) 2005-08-28 16:53:27 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
4b935b9a8a Fixed sqlite build, sqlite3.h was not being correctly generated. 2005-07-29 20:41:52 +00:00
Ilia Alshanetsky
1564872062 Backport of libsqlite fix in relation to AS keyword. 2005-07-29 19:48:52 +00:00
foobar
4b0cdf8cd4 fix VPATH builds 2005-07-29 09:50:15 +00:00
Wez Furlong
a6f0d99e5b fixup the build in HEAD again... moved the maintainer only stuff out of the
config.m4 and into a separate script to make it cleaner
2005-07-27 11:53:00 +00:00
Wez Furlong
dcac8e1a44 Prep for PECL release.
Fixup config.m4 to work properly under a pear tool vpath build
# seems strange that it was so badly broken... did something major change?
2005-07-27 04:07:11 +00:00
Ilia Alshanetsky
2d920f6848 Only set authorizer if we intend to use it (safe_mode or open_basedir). 2005-07-27 02:35:37 +00:00
Ilia Alshanetsky
bc80bdb973 Added test for bug #33841. 2005-07-24 17:19:59 +00:00
Ilia Alshanetsky
66125c18a3 Fixed bug #33841 (pdo sqlite driver forgets to update affected column count
on execution of prepared statments).
2005-07-23 23:34:04 +00:00
Wez Furlong
4854dd71de this needs to be the column count, otherwise a db->query() that returns 0 rows
will fail rather than returning a statement with no rows.
2005-07-18 14:40:49 +00:00
Ilia Alshanetsky
7d1b4145b1 Fixed compiler warning. 2005-07-14 23:17:16 +00:00
Ilia Alshanetsky
d3a9f93111 cursor_closer for SQLite. 2005-07-09 04:37:27 +00:00
Ilia Alshanetsky
703c55577b Fixed memory leak, after SQLITE_DONE sqlite3_data_count() always returns 0. 2005-07-07 15:13:28 +00:00
Wez Furlong
35dbaea547 remove the old tests for pdo_sqlite 2005-07-06 06:09:13 +00:00
Wez Furlong
7b610aba35 Add a redirect test to run the common pdo core tests against the sqlite
driver
2005-07-06 06:08:53 +00:00
Ilia Alshanetsky
e614839111 touch generated file. 2005-06-30 20:59:21 +00:00
Ilia Alshanetsky
7d02c9dcb2 Upgraded bundled sqlite lib to 3.2.2 2005-06-30 20:58:36 +00:00
Marcus Boerger
5cf2c9dc45 - Add +ifdefs to still allow PHP 5.0 builds of PDO
# PDO is a PECL extension and at the moment is still meant to compile on
# both PHP 5.0 and PHP 5.1.
2005-06-23 00:19:16 +00:00
Dmitry Stogov
f47c78487b Improved PHP extension loading mechanism with support for module dependencies and conflicts 2005-06-17 09:39:23 +00:00
foobar
15cf2a60b0 - Added PHP_CHECK_PDO_INCLUDES macro (caches the result) 2005-06-14 00:00:53 +00:00
Wez Furlong
711b4e0043 implement the 'request shutdown' hook; this allows us to register UDFs on
persistent handles safely. (it is dangerous to keep them registered between
requests, as there are 0 guarantees that functions with the same name are even
present on the next hit, let alone that the zvals we cache point to the right
place.
2005-06-10 05:49:48 +00:00
Wez Furlong
6cc74b0e39 add sqliteCreateAggregate() 2005-06-10 05:17:47 +00:00
Wez Furlong
41421c7d7a finish implementation of sqliteCreateFunction(). 2005-06-10 04:04:43 +00:00
Wez Furlong
be76bd5278 work in progress on UDF.
Something is hokey in HEAD, checking it in to try it on another box.
2005-06-10 02:50:37 +00:00
foobar
a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
Marcus Boerger
9b3929a7e9 - Need to make PDO::__construct() final to prevent SEGV it isn't called 1st 2005-05-26 18:36:18 +00:00
Marcus Boerger
2ac0540323 - Add test for deriving PDO 2005-05-24 14:26:22 +00:00
Marcus Boerger
88157ad284 - Add new tests for PDO_FETCH_INTO 2005-05-24 12:39:09 +00:00
foobar
626253940e - Added PHP_INSTALL_HEADERS() macro
- Fixed several VPATH build issues
- Changed all awk calls to use $AWK
- Changed all mkdir calls to use "$php_shtool mkdir"
2005-05-07 02:51:53 +00:00
Marcus Boerger
2906d6570c - Add new test 2005-03-24 12:31:37 +00:00
Wez Furlong
6895ef99c0 fix my silly typo 2005-03-21 01:24:36 +00:00
Marcus Boerger
a66e14645c - Add new tests 2005-03-21 00:29:25 +00:00
Frank M. Kromann
17264461f9 fix build when the pecl module is part of the php source tree 2005-03-19 10:55:47 +00:00
Marcus Boerger
360fbc09b7 - Interface name was changed 2005-03-19 10:55:35 +00:00
foobar
5a4c0afe31 - Back to stone-age 2005-03-14 09:47:31 +00:00
foobar
bde0661ef6 - Move stuff that belongs in Makefile into Makefile.frag 2005-03-14 01:09:49 +00:00
Marcus Boerger
7c4cd04229 - Update tests 2005-03-13 22:35:34 +00:00
Marcus Boerger
92af2b6194 - Update tests 2005-03-10 17:55:36 +00:00
Wez Furlong
a826ded3cc re-enable deps for HEAD 2005-03-09 18:21:41 +00:00
Wez Furlong
e162e80d31 prep for pecl release 2005-03-09 18:21:10 +00:00
Wez Furlong
584abff629 update extension version 2005-03-09 18:18:53 +00:00
Wez Furlong
95b67c9763 update in readiness for release 2005-03-09 06:04:21 +00:00
Magnus M��tt�
591fb2d97c Add one more test. 2005-03-09 05:29:57 +00:00
Magnus M��tt�
4b4975f1f8 Add test 020 and 021 for PDO_SQLite. 2005-03-09 04:45:08 +00:00
Marcus Boerger
bbccc37f84 - Add new tests 2005-03-07 22:43:27 +00:00
Marcus Boerger
efb3529b7f - Add new tests 2005-03-07 22:36:12 +00:00
Marcus Boerger
7bbbfa3f15 - Add new tests 2005-03-07 01:39:12 +00:00
Marcus Boerger
f76f510185 - Add tests
- Fix testname
- Drop unnecessary include line (was wrong anyway)
2005-03-04 01:29:27 +00:00
foobar
3f320607ab touch 2005-03-01 01:45:34 +00:00
Rasmus Lerdorf
99f832a206 If pdo is disabled, skip all the pdo extensions. 2005-02-28 08:18:47 +00:00
Wez Furlong
742b0ab676 build bundled sqlite on win32 2005-02-28 03:23:56 +00:00
Wez Furlong
c145e5a7e3 juggle around a bit; commit generated file 2005-02-28 03:21:52 +00:00
Wez Furlong
f58e2006d5 fix for PECL Bug #3452 2005-02-28 01:30:14 +00:00
Marcus Boerger
d0a76e992b - Add new test 2005-02-27 22:39:35 +00:00
Wez Furlong
ae5649598d upgrade bundled sqlite to sqlite 3.1.3 2005-02-27 05:20:19 +00:00
Wez Furlong
2c5b2fc105 Alan: moved your fields away, but reserved you a pointer.
Changed PDO::lastInsertId() to have following proto:

	string PDO::lastInsertId([string name])

this allows arbitrary unique identitifers to be returned from the driver.

The optional name parameter is for databases that require additional contextual
information to be able to return the correct identifier.  None currently use
it, but pgsql will be on the list of drivers that do.
2005-02-26 17:27:51 +00:00
Wez Furlong
31f5f8f907 fix line endings 2005-02-26 15:41:54 +00:00
Marcus Boerger
b89fda667f - Drop driver name from generic tests and reserve those names for driver
specific tests.
# Well a little design correction
2005-02-24 00:11:16 +00:00
Marcus Boerger
b786b93b7a - Delay ctor call so that it can overwrite everything and the data can
already be accessed from the ctor.
2005-02-23 23:28:30 +00:00
Marcus Boerger
3f1738f96d - Add new tests 2005-02-23 01:13:13 +00:00
Marcus Boerger
3cb441df9a - Add new tests 2005-02-23 00:56:34 +00:00
Marcus Boerger
ab8f1f316b - Add new test 2005-02-21 18:55:51 +00:00
Marcus Boerger
74b1cee57f - Show warnings 2005-02-21 18:54:45 +00:00
Marcus Boerger
94c286f2ef - Attempt at an unified test suite 2005-02-20 17:56:19 +00:00
Marcus Boerger
26677dd2a2 - Add test 2005-02-20 16:16:45 +00:00
Marcus Boerger
567fd3159d - Update tests 2005-02-20 15:28:31 +00:00
Marcus Boerger
44ab1ef86c - Update test 2005-02-20 13:37:04 +00:00
Marcus Boerger
96e8cca9bc - Add test 2005-02-19 23:58:03 +00:00
Marcus Boerger
6045a3a5e1 - Add test 2005-02-19 23:48:47 +00:00
Marcus Boerger
422e2b639e - Add PDO_FETCH_GROUP test 2005-02-19 23:12:24 +00:00
Marcus Boerger
1fee3962b0 - Update/Add tests 2005-02-19 21:50:46 +00:00
Marcus Boerger
89f1128cf4 - Add first tests 2005-02-19 19:52:41 +00:00
Wez Furlong
55f53a5a96 symlinked pdo drivers under ext.
Enabled PDO and PDO_SQLITE by default.
Fixup PDO header detection so that it searches in the correct order, and
correctly picks up the headers when building from outside of the source
tree.

TODO: make pdo_XXX auto-enable when XXX is enabled.  Volunteers welcome.
2005-02-17 04:23:15 +00:00
Wez Furlong
bee7f3d0ac correct backwards logic 2005-02-13 03:01:38 +00:00
Wez Furlong
08f683a645 Probably fix pecl vs bundled-shared build 2005-02-13 02:51:11 +00:00
Wez Furlong
9e31b10531 prep for release 2005-02-12 08:23:32 +00:00
Wez Furlong
002545fffb Fix bundled sqlite build (doh!) 2005-02-12 08:20:17 +00:00
Wez Furlong
877a2bd690 prep for release 2005-02-10 02:06:49 +00:00
Ilia Alshanetsky
cd6d5fb18f Fixed compile warnings. 2005-02-09 16:33:00 +00:00
Wez Furlong
ad60999858 proper fix for PECL Bug #3412 2005-02-09 14:32:04 +00:00
Wez Furlong
1cdde9e3ed update with changes 2005-02-09 07:02:00 +00:00
Wez Furlong
211206b2e4 Add PDO_ATTR_TIMEOUT support.
Fix PECL Bug #3391
2005-02-09 07:00:00 +00:00
Wez Furlong
229ea4bbfc update ready for release.
Disable dependency macro for compatibility with existing PHP 5.0.x releases.
2005-02-09 04:57:32 +00:00
Wez Furlong
ae5958570b update 2005-02-07 01:21:58 +00:00
Wez Furlong
d87c5ec288 update for api changes 2005-02-06 22:34:53 +00:00
Wez Furlong
26f97a911b Eliminate unused parameter.
Don't start a transaction when asking for a cursor with pgsql.
Fix parameter binding for sqlite3
2005-01-21 00:39:03 +00:00
Wez Furlong
a9d98544de Allow drivers to select bind emulation on a per statement basis 2005-01-18 04:58:50 +00:00
Wez Furlong
c77bd71315 be aware of scrollable cursors; sqlite doesn't support them 2005-01-12 06:08:59 +00:00
Wez Furlong
4d5c40cd9a touch generated file to avoid implicit yacc rule from eating it 2005-01-12 06:08:36 +00:00
Wez Furlong
e6c282a766 jumbo commit; implement sqlstate error codes.
Bundle sqlite3
2005-01-07 05:27:27 +00:00
Wez Furlong
1f75a34f76 add proper dep 2004-12-31 17:45:08 +00:00
Wez Furlong
823d48bd37 hmmmmm. Bound params *were* working this way before, but now it seems that
I have to bind them as text.
2004-12-26 18:13:52 +00:00
Wez Furlong
c8b2f43005 fix build issues 2004-12-25 04:01:30 +00:00
Wez Furlong
12a678ca6a *cough* de-bogusify driver registration.
(what was I smoking??)
2004-10-26 22:00:15 +00:00
Wez Furlong
69a91aae8e Removing clucking debug and tweak the reset call 2004-09-26 20:52:07 +00:00
Wez Furlong
486b426947 meta data for sqlite3.
Fix repeated executes when the entire rowset has not been consumed.
2004-09-26 20:46:35 +00:00
Wez Furlong
53ed3475ce add entry for liveness check 2004-09-23 20:09:00 +00:00
Edin Kadribasic
3da64fa20a Add additional include search path 2004-09-20 21:26:24 +00:00
Wez Furlong
eb5e0d6d12 Add package.xml
(not quite ready for release)
2004-09-19 19:50:06 +00:00
Wez Furlong
f40608230b Use NO_PERM code here 2004-09-19 18:13:09 +00:00
Wez Furlong
6fa469f367 make it build on win32 2004-09-19 15:47:13 +00:00
Wez Furlong
0d4869f24b Add transaction support.
Add authorizer/safe_mode support
2004-09-19 12:42:39 +00:00
Wez Furlong
2f161ab79d First cut at a PDO driver for SQLite 3.x
Features:
- native prepare/execute and bound parameters.
- finally supports binary data (via bound parameter api)
- full unicode/utf-8 support

Missing:
- UDF functions
- authorizer hooks for safe_mode/open_basedir restrictions

You need to download, compile and install sqlite3 yourself; we're not bundling
it (at least, not yet).
2004-09-19 10:55:41 +00:00