| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pg_exec() is a legacy alias for pg_query() [1]. Replace it when the
query is not prepared, or use pg_execute() when it is.
This fixes issues with HHVM v3.6.
[1] http://php.net/manual/en/function.pg-query.php
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Mike's original commit was split into distinct elements.
|
|
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Mike's original commit was split into distinct elements.
|
|
|
|
|
|
mysqli_real_escape_string(), differs from mysql_real_escape_string().
The former requires a valid mysqli DB connection object, while the
latter has a fallback mechanism which attempts to generate a connection
when given NULL.
When calling ADOConnection::qstr() without an active connection
($_connectionID == false), mysqli_real_escape_string() throws a warning
and returns an empty string.
Now, we fallback to pre-PHP 5 mechanism to quote the string when not
connected.
Fixes #79
|
|
|
|
ADODB_pdo_base MetaTables() and MetaColumns() now match the function
definition in ADODB_pdo, to avoid PHP notices (Pull request #62).
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
There is no permanent connection in SQLite3, so we just call _connect()
|
|
Thanks to diogotoscano
|
|
|
|
Thanks to @diogotoscano
|
|
|
|
The _seek() method now returns false and outputs a warning in debug mode
|
|
|
|
Fixes #56
Signed-off-by: Damien Regad <dregad@mantisbt.org>
|
|
|
|
* SQLDate method for generating date formatting strings
* SelectDB method for changing selected database
* $metaTablesSQL string that includes table vs view detection
Makes pdo_mysql behave more similarly to mysql and mysqli. Swapping
underlying driver becomes easier.
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Original commit modified to fix whitespace
|
|
|
|
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
|
|
|