foobar
23ffaecc7d
If the macro exists, use it, otherwise use the Makefile.frag
2005-06-14 13:09:23 +00:00
Wez Furlong
13ac7169af
and the lesson is, test everything before you commit at 2am
2005-06-11 12:36:12 +00:00
Wez Furlong
f124c2086e
couple of conceptual errors here
2005-06-11 02:50:20 +00:00
Wez Furlong
fcff6a079a
"Fix" PECL #4411
...
SPL is not initialized before PDO, so inheriting from SPL's runtime exception class gives PDO a broken exception class.
We don't currently have a way to express this kind of "soft" dependency in the build system, so I'm disabling inheriting from the runtime exception for now.
2005-06-10 06:11:29 +00:00
Wez Furlong
49e7b3da4c
Fix a dumb bug that would effecively ignore persistent connections and create a
...
new one each time.
Add a hook for persistent connections: it is called when the object goes out of
scope, and offers the driver an opportunity to release per-request scoped data
at the right time.
This hook is used by pdo_sqlite to unregister UDFs, which are dangerous to keep
registered between requests.
2005-06-10 05:47:55 +00:00
Wez Furlong
5c16028eb5
initialize type of function
2005-06-10 04:03:43 +00:00
Dmitry Stogov
cf5a6f81e3
Fixed zval_ptr_dtor(&return_value) on uninicialized zval
2005-06-08 19:51:56 +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
Marcus Boerger
0eb7282f98
- fetchSingle() was renamed to fetchColumn()
2005-05-21 14:47:33 +00:00
Ilia Alshanetsky
fa0e534f83
Various compiler warning fixes.
2005-05-18 22:40:56 +00:00
Ilia Alshanetsky
def27b9959
As per PDO meeting on PHP|Tropics fetchSingle is being renamed to
...
fetchColumn and now supports specification of the column to retrieve.
2005-05-17 01:41:51 +00:00
Wez Furlong
e8cd91adee
Allow it build with PHP 5.0.x and up again.
2005-05-14 20:06:54 +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
foobar
9070204b93
Only test stuff if PDO is enabled
2005-05-06 22:58:42 +00:00
Ilia Alshanetsky
3be50385ab
Allocation checks around persistent allocs that can fail.
2005-04-28 00:25:25 +00:00
Ilia Alshanetsky
d30a9ee96d
removed debug code.
2005-04-27 03:12:18 +00:00
Wez Furlong
7dd430ff28
fix bug #32795
2005-04-22 02:40:48 +00:00
Ilia Alshanetsky
378776dc33
missing header (re2c 0.9.4 built .c file)
2005-04-14 14:01:11 +00:00
Ilia Alshanetsky
e546162f2c
Added missing header.
2005-04-14 14:00:39 +00:00
Antony Dovgal
e499a1c296
fix segfault & buffer overrun when there is no PDO drivers plugged in
...
(patch by su1d@phpclub.net )
2005-03-29 17:23:36 +00:00
Marcus Boerger
d27be11233
- Fix null handling found by thies
2005-03-24 12:32:06 +00:00
Marcus Boerger
2906d6570c
- Add new test
2005-03-24 12:31:37 +00:00
Marcus Boerger
dce82da87d
- Add function pdo_drivers()
2005-03-22 10:36:25 +00:00
Marcus Boerger
73a6a31053
- the driver's key name is not zero terminated, hence we need to either
...
estrNcpy() it or use the driver struct.
- table headers do not support single column mode so change to two cols
- there should be only one table header
2005-03-22 10:26:51 +00:00
Marcus Boerger
a66e14645c
- Add new tests
2005-03-21 00:29:25 +00:00
Marcus Boerger
c9108bba25
- Simplify code (only implement handlers that are necessary)
...
- Fix handling of read only property 'queryString'
- Fix overloading
- Move class init code to their defining .c files for simplification
- Mark class PDORow as final until there's a need to inherit this and
someone implements the handlers correct then.
2005-03-21 00:29:06 +00:00
Marcus Boerger
360fbc09b7
- Interface name was changed
2005-03-19 10:55:35 +00:00
Marcus Boerger
7b2bee1d5b
- Fix warnings by doing it the Zend way
2005-03-19 10:51:42 +00:00
Wez Furlong
5248f59d1a
show list of PDO drivers in phpinfo.
...
Highlight a possible problem area; iterator leaks when used in foreach(),
at least with sqlite2 driver.
2005-03-12 01:16:59 +00:00
Wez Furlong
d88b4c734f
build pdo statically on win32, so sqlite2 driver will build.
...
Alternatively, we could build sqlite as a shared ext, but that has more
of an impact to people upgrading.
2005-03-12 01:15:37 +00:00
Marcus Boerger
92af2b6194
- Update tests
2005-03-10 17:55:36 +00:00
Magnus M��tt�
72276d013a
Add NOT NULL to create so the tests work with Firebird too.
2005-03-10 02:37:20 +00:00
Wez Furlong
5984f7f3e1
prep for release
2005-03-09 18:14:49 +00:00
Wez Furlong
f7ebff804d
"thou shalt not throw exceptions except in really exceptional circumstances."
...
The only allowed places to throw them directly are from within the PDO class
constructors or when dealing with transaction level attributes, where
"hard-failure" is a feature.
All other errors should use the PDO error handling mechanism and respect the
users selected error mode.
2005-03-09 05:50:03 +00:00
Wez Furlong
de1d8b91f0
prep package file for release.
...
fix my favourite typo.
fix compile warnings
2005-03-09 05:03:58 +00:00
Dan Scott
e90582a990
Add test for PDOStatement::getColumnMeta().
...
Note that PDO_ODBC test fails as it is currently unimplemented.
2005-03-09 00:20:07 +00:00
Dan Scott
83dfcbf3f6
Add simple tests for insert through PDO::prepare/PDOStatement::execute.
...
Tests both question mark placeholders and named parameters.
2005-03-08 18:12:22 +00:00
Dan Scott
570976d236
Add a test for PDOStatement::columnCount().
2005-03-08 17:39:41 +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
9c08e3ccae
- Update signature
2005-03-07 22:27:29 +00:00
Dan Scott
48a6151051
Test PDO::beginTransaction and PDO::rollBack.
2005-03-05 21:03: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
Marcus Boerger
a4521139da
- Reserve some bits for flags
2005-02-28 22:37:13 +00:00
Marcus Boerger
6ce9bcc31e
- Need to drop ce until engine gets fixed
2005-02-28 19:23:56 +00:00
Marcus Boerger
eb330a95f6
- Fix warning
2005-02-28 18:44:14 +00:00
Marcus Boerger
d072f6de54
- Changing handler table definitively results in SEGVs
2005-02-28 18:40:02 +00:00