| Age | Commit message (Collapse) | Author | Files | Lines |
|
Use proper PostgreSQL function names rather than legacy aliases that
arent documented anymore. This should continue to work back to PHP v4.2
still, and also works with HHVM.
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
|
|
|
|
The fix implemented in 4ff57e224bdc1969e0618201569c8d866e58bca9 for
mysqli applies to mysql driver also.
Fixes #28
|
|
Add IF EXISTS/IF NOT EXISTS to MySQL commands when creating/dropping
sequence tables. This prevents race conditions that can be easily
triggered in unit tests running in parallel.
Fixes #28
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
|
|
When calling MetaColumns with schema.table, the driver triggers a
'Warning: sprintf(): Too few arguments' because the metaColumnsSQL1
statement contains one more parameter in 7 compared to the 6.4 version.
Resolved by adding a new protected _generateMetaColumnsSQL() method to
handle the preparation of the appropriate SQL statement, and overriding
it in the postgres7 driver.
http://phplens.com/lens/lensforum/msgs.php?id=19481
|
|
Fixes #12
|
|
|
|
|
|
The original SQL from William Kolodny [William.Kolodny#gt-t.net] was
very complex with multiple sub-select statements.
Through use of regexp_replace() instead of split_part(), we now have
only a single subquery.
Removed obsolete comment.
|
|
|
|
|
|
|
|
|
|
When selecting from a Sybase DB using ADODB_FETCH_ASSOC mode, all returned
values will be NULL in the result set (fetch modes NUM and BOTH are ok).
Fixes Github issue #10
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
Minor changes to original patch (Whitespace, use // for comments)
Fixes Github issue #9
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
|
|
The _insertid() method introduced in postgres9 driver really belongs in
postgres8, since OID field was actually removed in 8.1.
This commit creates new postgres8 classes, moves the method from the '9'
driver to the new ADODB_postgres8 class, and makes the '9' classes
inherit from postgres8 instead of postgres7.
|
|
|
|
Reverting change from d01454c0bf608ecd6625ccd9d968d45af7adac4c which
introduced a regression.
Fixes #8
|
|
|
|
|
|
As recommended on Microsoft TechNet site
http://technet.microsoft.com/en-us/library/ms180878%28v=sql.105%29.aspx#StringLiteralDateandTimeFormats
|
|
When ADOConnection->Execute is called with a single non-array parameter
that evaluates to false, it ignores the parameter.
Fixed by doing a strict-type comparison. Note that single boolean "false"
parameter needs to be passed in as array(false).
Reported by Alejandro Vásquez
Fixes sourceforge patch #32
|
|
The method now properly resets the parameter count to 1 when $name is
false (or 0).
|
|
http://php.net/manual/en/language.basic-syntax.phptags.php
|
|
Fixes Github issue #5, pull request #6
|
|
Bumped 'dev' version allows users who rely on source code downloaded
from the git repository rather than an official release tarball to
reliably determine that they are running a development version of the
library.
|
|
Ensures the fetched recordset does not contain any data left over from
an earlier fetch operation.
Same fix as a1e2d109b756d607fb258dcdc94aeb4a52e5b454
|
|
|
|
Fix submitted by Warwick Smith in [1].
Ensures the fetched recordset does not contain any data left over from
an earlier fetch operation.
[1] http://phplens.com/lens/lensforum/msgs.php?id=17539
|
|
|
|
compliant
|
|
Implemented a fix (source:
http://phplens.com/lens/lensforum/msgs.php?id=19079) that would address
an issue where the last insert ID would not be returned when using a
prepared statement.
|
|
The new default 'hex' for bytea_output setting, causes PHP to
incorrectly process the column's contents. As recommended in [1], we set
bytea_output to 'escape' when connecting, to ensure this works
Fixes #4
[1] https://bugs.php.net/bug.php?id=59831
|
|
|
|
|
|
Fixes #3
|
|
|
|
The change in metaTablesSQL introduced in v5.15 broke the ability to
filter tables using a mask.
Thanks to Arnt Witteveen for reporting the issue [1]
[1] http://phplens.com/lens/lensforum/msgs.php?id=19359
|
|
|
|
Contact the commit's author directly for all comments/fixes.
General
=======
- The driver is qualified to run on Server 2005, 2008 and 2012.
- At startup, the driver identifies the SQL Server version, which
allows it to invisibly take advantage of new features available in SQL
server 2012.
- It will not run on SQL Server 2000, although I'm sure it would be
easy enough to fix.
- It includes all patches to the known bugs that I can find on the
phplens forum.
- Much of the debugging has been removed, as this impeded program
debugging when used with FastCGI
- Some fixes are my own versions of those reported on the phplens
boards
drivers/adodb-mssqlnative.inc
=============================
Changed mapping of bigint from I to I8
MetaColumns()
--------------
Missing MetaColumns function, re-introduced, Produces an extended list
of 10 field attributes, including auto-increment, nullable
GenID() / CreateSequence()
--------------------------
- On Server 2008 and lower, uses the historical sequence emulation.
- On Server 2012. Uses the newly introduced Create Sequence statement.
FetchField()
------------
This follows the method used in the oracle driver and caches the
metadata at initialisation, which helps performance.
datadict/datadict-mssqlnative.inc
=================================
Missing file reintroduced, to support SQL Server format datadict
functions
perf/perf-mssqlnative.inc
=========================
Tables()
--------
Arguments to the Tables() function declared incorrectly
|
|
- Move all files in adodb5/ to root
- Remove adodb-for-php4/ directory
|