Commit Graph

259 Commits

Author SHA1 Message Date
Jani Taskinen
7c6f0bd42b MFH: - Use $PHP_LIBDIR where appropriate 2007-07-09 12:33:43 +00:00
Jani Taskinen
d56933b179 MFH: Fixed bug #41870 (PDO_ODBC module linking fails with iODBC) 2007-07-09 11:13:56 +00:00
Hannes Magnusson
c0dd1f4d0b MFH 2007-05-28 12:19:41 +00:00
Marcus Boerger
50ea26760d - Avoid sprintf, even when checked copy'n'paste or changes lead to errors 2007-02-24 02:17:47 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Wez Furlong
3028f7465d Fix for PECL #7755; use the displayable column width as the basis for our
buffer size, as the raw column size can be too small when requesting
a string representation.

Also fix up bogus error output when fetching, and another one of the test
cases to make it run against SQL Server 2005.
2006-10-11 03:07:29 +00:00
Wez Furlong
391ed04adb Fix for PECL bug #8944. Could also be the same problem as pecl #7775. 2006-10-11 02:10:56 +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
Wez Furlong
ea2037a2d3 fix PECL #6544 2006-04-30 01:42:53 +00:00
Wez Furlong
07e11dcc4d Fix #36632 2006-04-30 01:27:33 +00:00
Wez Furlong
aa5dbc8c92 Fix #35552 2006-04-30 00:52:28 +00:00
Wez Furlong
c5df14364b Fix for #36342; ODBC won't let you bind variables by buffer after "long"
columns.

We simply add a flag that indicates if we've seen any long columns and will
continue to bind the columns the slow way.

While we're at it, increase the maximum length of the column names that we can
handle.
2006-03-27 21:04:12 +00:00
Wez Furlong
85a578e029 Possible fixes for #35552, #35592 and #35620. 2005-12-14 04:56:22 +00:00
Wez Furlong
17683295e4 switch to package2.xml 2005-12-04 22:34:26 +00:00
Wez Furlong
85ad81736c set to 1.0 stable. 2005-11-26 20:50:08 +00:00
Wez Furlong
4e4b98a66d Use right define: ZEND_MODULE_API_NO as these are PHP modules, not Zend extensions 2005-11-25 15:42:26 +00:00
Wez Furlong
268ac81e39 Add pdo_odbc.db2_instance_name ini setting when built against DB2.
This is a convenience for setting up the DB2 environment more easily.
2005-11-25 02:33:04 +00:00
Wez Furlong
6070381f9d prep for pecl release 2005-11-01 03:07:41 +00:00
Dan Scott
e89500cdfb Apply patch for #34900, sight unseen. 2005-10-18 01:05:22 +00:00
Wez Furlong
69f0675a35 Fix for PECL #5433 (rowCount() not set) 2005-09-30 04:19:24 +00:00
Wez Furlong
006922ba18 ensure that this size is initialized correctly 2005-09-26 21:37:33 +00:00
Wez Furlong
08a6122f54 MFH: use PDO:: class constants 2005-09-20 00:46:02 +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
eab79e8de6 prep for pecl release 2005-07-27 03:22:03 +00:00
Wez Furlong
d4348d11dd try to make the test a bit more portable 2005-07-19 16:55:48 +00:00
Wez Furlong
3ebfbe6bd2 this should always be a string here, but just in case, convert it. 2005-07-19 16:55:22 +00:00
Wez Furlong
6e7a8f10d1 if we didn't detect an error, don't return -1 rows, as that means that we found an error 2005-07-19 16:54:51 +00:00
Wez Furlong
43c1a1b73c Closes #33533 by implementing proper dynamic fetching of long text columns. 2005-07-19 15:26:16 +00:00
Wez Furlong
e568ea3277 Limit the size of columns to 64K, so we don't try to allocate 2GB for each text
column coming out of informix.

Refs Bug #33533.

Not totally closed yet; still need to cater for text fields longer than 64k in a sane manner.
2005-07-19 03:39:49 +00:00
Wez Furlong
0d7fa88b4e Fix #33624, mysterious crashes on shutdown on win32 2005-07-10 14:56:36 +00:00
Wez Furlong
3d373f86f0 Related to #33624. Crashes for me on shutdown, but seems ok for the rest of the world. 2005-07-09 18:52:36 +00:00
Wez Furlong
f21084cb0b don't free the cols until we know we have another rowset 2005-07-09 05:01:14 +00:00
Wez Furlong
dc09c2ef9c DB2 wants us to use the proper ODBC 3 function for closing a cursor. 2005-07-07 14:20:04 +00:00
Wez Furlong
fff515bc46 more paranoia about the attribute param here too 2005-07-07 13:56:39 +00:00
Wez Furlong
ce3c90414b Hmm, these ldflags went AWOL. 2005-07-07 13:42:12 +00:00
Wez Furlong
93024bc268 Fix handling of parameter binding.
We need to guess at parameter sizing in some cases (eg: MS Access) as the
SQLDescribeParam() API is an optional feature.
Tidy up error handling.
Add workaround for a shutdown bug that I see with MS ODBC implementation.
(working to determine the precise cause of this).
PDO core test suite now passes all tests.
2005-07-07 12:49:21 +00:00
Wez Furlong
e39f37d36b replace pdo_odbc tests with new redirection thingy 2005-07-06 06:10:52 +00:00
Wez Furlong
372c38a53a build related adjustments.
These need to be included in beta 2
2005-06-22 08:45:22 +00:00
Dan Scott
4187a6e3c7 Bring PDO_ODBC tests in sync with PDO base tests. 2005-06-15 00:17:18 +00:00
foobar
1cd9875465 Partial revert: AC_DEFINE / PHP_HAVE_DEF need to be called once only per macro 2005-06-14 02:18:18 +00:00
foobar
8eeff6d2d4 - Fixed some places which might cause problems
- Changed the "general" flavour to have libname parameter (given without the
  lib prefix of course)
# bug #33316 should be fixed now too
2005-06-14 01:42:31 +00:00
foobar
15cf2a60b0 - Added PHP_CHECK_PDO_INCLUDES macro (caches the result) 2005-06-14 00:00:53 +00:00
Wez Furlong
986800ce88 hunting for a bug. Looks like it might be yet-another-mysterious-shutdown problem. 2005-06-11 14:48:06 +00:00
Dan Scott
b21bf3d357 PDO_ODBC returns strings for all data types. Bring expected output in line. 2005-06-11 14:01:46 +00:00
Wez Furlong
ecce72aa83 become a better config.m4 citizen 2005-06-11 13:27:50 +00:00
Wez Furlong
183c8aa287 Fix for PECL #3714: beginTransaction doesn't work if you're in auto-commit mode. 2005-06-11 12:38:12 +00:00
Wez Furlong
f1569c199e test commit 2005-06-06 17:47:49 +00:00
foobar
a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
Ilia Alshanetsky
acbeba2a50 Removed unused var. 2005-04-19 20:55:02 +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
Dan Scott
48a6151051 Test PDO::beginTransaction and PDO::rollBack. 2005-03-05 21:03:12 +00:00
Dan Scott
fc825e2071 Missed this one... 2005-03-05 15:48:54 +00:00
Dan Scott
5ce920f189 One more PDO_ODBC test (tested with DB2 V8.2). 2005-03-03 20:30:38 +00:00
Dan Scott
dc4501cf99 Next three tests for PDO_ODBC (tested with DB2 V8.2). 2005-03-03 20:23:29 +00:00
Dan Scott
12f1993f8e Next batch of tests for PDO_ODBC (tested against DB2 V8.2). 2005-03-03 13:53:55 +00:00
Dan Scott
49d1349b9a Begin porting standard PDO tests to PDO_ODBC, testing against DB2. 2005-03-03 11:49:35 +00:00
Rasmus Lerdorf
99f832a206 If pdo is disabled, skip all the pdo extensions. 2005-02-28 08:18:47 +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
Hartmut Holzgraefe
1f98a966c5 fix aclocal "underquoted argument" warnings 2005-02-13 07:31:02 +00:00
Wez Furlong
427c5e0e4f tidy up error case 2005-02-13 07:00:29 +00:00
Wez Furlong
2a32b478f9 typo-fix error message 2005-02-13 06:27:03 +00:00
Wez Furlong
5edd570b94 Correct the pdo header search order 2005-02-13 06:26:48 +00:00
Wez Furlong
44cec3d456 disable dep for pecl release 2005-02-09 05:12:41 +00:00
Wez Furlong
201ec3dc02 prep for release 2005-02-09 05:04:40 +00:00
Wez Furlong
dbcf51b5a8 a working implementation of LOB input parameters for ODBC.
however: when sending in a string from the script, we get a 1 byte overflow
of the pdo parameter structure... Need to install valgrind on the test box
2005-02-07 04:13:32 +00:00
Wez Furlong
ac018c38a8 This might allow piecewise sending of LOB data for input parameters. 2005-02-07 03:27:54 +00:00
Wez Furlong
501000f129 Implement input/output parameters 2005-02-07 01:16:16 +00:00
Wez Furlong
7279fe8ab0 centralize this define 2005-02-07 00:02:51 +00:00
Wez Furlong
3130ed3066 make configure smarter.
Update for new get_col() signature
2005-02-06 22:25:33 +00:00
Wez Furlong
c56419ed78 support getting some more attributes 2005-02-06 17:49:48 +00:00
Wez Furlong
0162d0093d picky picky.
Lets make those OUTPUT rather than INPUT-OUTPUT.
We need some flag from the user if they want that.
2005-01-21 06:11:10 +00:00
Wez Furlong
e5b6b0dbee Allow static build (better detection of PDO headers).
Copy error code into driver code, so PDO can handle it correctly.
Less leaks
2005-01-21 04:43:06 +00:00
Wez Furlong
bc55e7f3e2 make use of the query rewriter (even though it doesn't do anything yet) 2005-01-21 04:22:06 +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
e28d2c8032 Take a stab at implementing out parameters for odbc 2005-01-19 05:27:15 +00:00
Wez Furlong
769d399be5 add dep 2005-01-19 03:50:32 +00:00
Wez Furlong
ffd35bb63d allow static linkage.
Avoid segv when no username is passed
2005-01-19 03:45:21 +00:00
Wez Furlong
434d068994 *compile before commit *
*compile before commit *
*compile before commit *
2005-01-19 01:17:13 +00:00
Wez Furlong
af8bb16ec1 implement nextRowset for ODBC
# this might even work first time
2005-01-19 01:13:39 +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
b234f1e415 tidy up a few things 2005-01-17 05:28:13 +00:00
Wez Furlong
44e77380fb Missing 1 2005-01-17 01:31:14 +00:00
Wez Furlong
b2fe675636 Support scrollable cursors 2005-01-12 05:58:19 +00:00
Wez Furlong
f9d3469e4f Add configure support for ODBCRouter and generic ODBC libs.
Note that ODBCRouter doesn't directly implement ODBC 3.0, so
using it here won't really work.

Expand the ODBC 3 check to better explain what happened and
how to make progress (e.g.: use an ODBC manager library like
unixODBC).
2005-01-12 02:19:30 +00:00
Wez Furlong
166ca20bed Fix build 2005-01-11 14:28:37 +00:00
Wez Furlong
70da739031 remove error map; odbc speaks SQLSTATE natively 2005-01-07 05:25:35 +00:00
Wez Furlong
72040f7f2a more method table adjustments.
mysql driver needs work with the error message stuff.
Other drivers need a bit more auditing...
2004-09-23 20:43:11 +00:00
Wez Furlong
2e73bbfdc1 Allow use of scrollable cursor for ODBC 2004-05-25 18:57:50 +00:00
Wez Furlong
70bd032076 Use the correct label for the error message 2004-05-25 18:34:46 +00:00
Wez Furlong
d13d9c6047 Allow setting the cursor name for ODBC statements, so that:
UPDATE foo set .... WHERE CURRENT OF <NAME>

statements will work.
2004-05-25 18:33:51 +00:00
Wez Furlong
4d232fb17c Add flag to control the use of the ODBC cursor emulation library.
The default (which should be safe) is to use the cursor library if it is needed.
If for some reason either the driver or the emulation is broken, you may
override this from your script.
2004-05-25 17:44:36 +00:00
Wez Furlong
055848d83a prep for release 2004-05-22 20:58:36 +00:00
Wez Furlong
d39117c234 Fix buglet in dbh closing. 2004-05-22 15:04:26 +00:00
Wez Furlong
35494bb569 Enable ODBC Connection Pooling.
Theoretically better than PHP persistent connections, since ODBC itself takes
care of resetting the connections back to a "ground" state.

Connection pooling defaults to ON, since this is generally useful.
You can turn it off by using:

pdo_odbc.connection_pooling=off

in your php.ini file.

You may configure how ODBC matches connection details to existing connections
by setting this value to "strict" (the default) or "relaxed".  You are
encouraged to read the ODBC specs before changing this value.
2004-05-22 14:51:26 +00:00
Wez Furlong
ce5e317cc5 ok MSVC, why didn't you spot *that* one?? 2004-05-22 00:38:11 +00:00
Wez Furlong
8d9c384f7f Fix doer()
Implement error handling for ODBC
2004-05-22 00:30:00 +00:00
Wez Furlong
dc57cff2a6 Prep for release 2004-05-21 21:20:00 +00:00
Ilia Alshanetsky
3a5e5ca4d4 Implement ODBC doer. 2004-05-21 16:17:22 +00:00
Wez Furlong
798d437b05 Fix return type here too 2004-05-21 15:33:18 +00:00
Wez Furlong
64f0ec7bde Update for placeholder flags 2004-05-21 14:15:03 +00:00
Edin Kadribasic
7a214b66ae Cosmetics 2004-05-19 13:28:05 +00:00
Wez Furlong
777484b561 update prototype 2004-05-19 12:40:50 +00:00
Wez Furlong
5a9864ed2b Update to match new prototype 2004-05-18 08:47:10 +00:00
Wez Furlong
12acb64696 package.xml 2004-05-18 00:45:58 +00:00
Wez Furlong
d4c5556b8b Let is build under unix.
Tested against IBM DB2 and unixODBC.
Could work with others.
2004-05-17 22:20:11 +00:00
Wez Furlong
d6c4dee168 ODBC (v3 ish) driver for PDO.
Will not build under unix yet.
2004-05-17 15:43:01 +00:00