summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2021-10-25Merge remote-tracking branch 'origin/hotfix/5.21'Damien Regad1-0/+13
# Conflicts: # drivers/adodb-mysqli.inc.php
2021-10-25mysqli: force error reporting mode to OFFDamien Regad1-2/+15
PHP 8.1 changes the default error reporting mode from OFF to MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT [1]. We manually set it to MYSQLI_REPORT_OFF in the ADODB_mysqli class constructor to ensure compatibility. Fixes #755 [1]: https://wiki.php.net/rfc/mysqli_default_errmode
2021-10-15mysql: Handle tables that are reserved wordsGold1-2/+2
Wrapping table names represented by `%s` in backticks so tables names that are also reserved words don't cause issues. These 2 locations have impacted our project. There are more in this file but they have not impacted us yet so I have left them untouched. I also updated the call to `$this->Execute()` in the first case. PHP is case insensitive to this, but not all IDE's are so this should help those. Fixes #759
2021-09-21Fixed function declaration to match parent (#717)Edgard Lorraine Messias1-2/+2
Fixed "Declaration of ADODB_pdo::metaIndexes($table, $normalize = true) should be compatible with ADOConnection::MetaIndexes($table, $primary = false, $owner = false)" (cherry picked from commit 891f5544a8db0ddf4ccef704b63ebbd654fb2d4e)
2021-08-24Fix syntax errorDamien Regad1-5/+0
Caused by incorrectly resolved merge conflict 507466ef798b18a3a8830230cfcd51bb488513cf.
2021-08-24Fix Whitespace, coding guidelines, PHPDocDamien Regad2-51/+39
2021-08-22Fix Whitespace, coding guidelines, PHPDocDamien Regad1-397/+383
2021-08-22update docblocks for prepare, _query and sqldateMark Newnham1-5/+13
2021-08-22Method only returns an integerMark Newnham1-1/+1
2021-08-22Createsequence should return a recordsetMark Newnham1-5/+2
2021-08-22add basic support for column manipulation in the data dictionaryMark Newnham1-34/+11
2021-08-22Remove emulated fetchAssocMark Newnham1-15/+1
2021-08-22Remove emulated FETCH_ASSOCMark Newnham1-25/+151
Replace emulated associative with fbird_fetch_assoc
2021-08-22remove _cacheType variable lookupMark Newnham1-12/+3
Lookup for auto blob decoding uses standard $fieldObjects instead of custom array
2021-08-22change _init() to current standardMark Newnham1-131/+246
- The _init method now loads all field objects at startup so that fetchField can return cached values instead of re-reading fbird_field_info() repeatedly - Update docblocks for blob functions - Remove unused _blob_decode_old method
2021-08-22update method errorNo()Mark Newnham1-6/+19
Error no is derived from fbird_errcode, isnstead of attempting to parse it from the errorMessage
2021-08-22update method genID()Mark Newnham1-2/+11
- Update docblock = Replace GENERATOR with recommended SEQUENCE
2021-08-22removed metgod dropSequence()Mark Newnham1-7/+3
Firebird recommends SEQUENCE instead of GENERATOR, so use core methods
2021-08-22update createSequenceMark Newnham1-6/+19
- updated docblock - Rewrote syntax to conform to recomended syntax replacing GENERATOR with SEQUENCE
2021-08-22Rewrite rowLock() methodMark Newnham1-8/+22
- update docblock - full rewrite of method based on firebird docs
2021-08-22update docblock for rollbackTrans()Mark Newnham1-4/+14
2021-08-22Removed the custom _execute() methodMark Newnham1-17/+10
The issue regarding multiple connections see #201 appears to have been resolved
2021-08-22updated docblock for beginTrans()Mark Newnham1-1/+9
2021-08-22Update docblock for serverInfo()Mark Newnham1-2/+7
2021-08-22Update connecr() methofMark Newnham1-26/+73
- Update docblock - Implement setConnectionParameter for role, dialect - Remove pre-php5 code fbird_timefmt
2021-08-22Implemented setTransactionMode()Mark Newnham1-7/+26
The standard method **setTransactionMode()** replaces the custom **$ibasetrans** transaction handling values
2021-08-22Update the sqlDate() methodMark Newnham1-23/+30
- Update docblock - Default date uses CURRENT_TIMSTAMP to access Hour/minute /second - Components that provide 2 digit values are now correctly zero padded. - NB AM/PM dates are still not supported.
2021-08-22Added The offsetDate() methodMark Newnham1-0/+19
2021-08-22update docblock for metatablesMark Newnham1-9/+10
2021-08-22metaTables no longer shows pseudo tablesMark Newnham1-41/+89
To provide compatibility with other drivers, the default configuration for metaTables is to not show any pseudo tables. Set the second argument to true to show $RDB, $MON and $SEC tables
2021-08-22Update metColumns() methodMark Newnham1-8/+20
Update docblock Remove trailing spaces from key and column names
2021-08-19Merge branch 'hotfix/5.21'Damien Regad1-10/+10
2021-08-19Remove useless call to pg_version()Damien Regad1-5/+5
The function's return value is never used, since we get the client version from ServerInfo().
2021-08-19pgsql: fix fetchField() parameter namingDamien Regad1-5/+5
Regression from 9f6f327b9d5b29d14565fa0ab4308354bf050d2d. fetchField()'s parameter was renamed from $off to $fieldOffset, but the change was not reflected in the method's body. Fixes #752
2021-08-17Redo Merge tag 'v5.21.1'Damien Regad5-93/+85
# Conflicts: # adodb.inc.php # docs/changelog.md # drivers/adodb-mssqlnative.inc.php # drivers/adodb-mysqli.inc.php Fixes #751
2021-08-17Redo Merge branch 'hotfix/5.21' Standardized file headersDamien Regad62-1083/+1319
Try to do it right this time... # Conflicts: # adodb-memcache.lib.inc.php Fixes #751
2021-08-17Reset version to avoid merge conflictsDamien Regad59-59/+59
Fixes #751
2021-08-17Revert changes since Standardized file headers mergeDamien Regad62-1515/+1738
The conflicts resolution applied when merging the Standardized file headers (commit e9dcce3df24912ad869d0193f0b419f2309101fc) was seriously messed up, actually overwriting a number of changes in the master branch. Rather than trying to go and fix things one by one which has a high risk of messing things further, it's easier to redo the merge from a clean slate, so this commit reverts the following: - "Merge branch 'hotfix/5.21' Standardized file headers", e9dcce3df24912ad869d0193f0b419f2309101fc - "Merge tag 'v5.21.1'", 5f437df3104159d5d659f60e31bef8d33c34995f - "Reset version to 5.22.0-dev" af9234a525c3255af051a330164486d73be4c63a - "Fix incorrect resolution of merge conflicts" a6733f61b0165b366c8d2c70d9af82edc3881951. - "Fix syntax error in toexport.inc.php" 20b01e83cb61b6b2460f64c7d1277c5f4cc28574. Fixes #751
2021-08-15Remove leftover legacy headersDamien Regad2-28/+5
A few of the old headers were not removed as part of PR #728.
2021-08-15PHPDoc, code styleDamien Regad2-8/+8
2021-08-15Cache Field objects with Property instead of static varDamien Regad1-15/+10
Change the static array introduced in fieldTypesArray() (see #367) to a class variable ($fieldObjectsCache), so the cache now only lasts for the Recordset's lifetime. Since the mssqlnative was already using a private $fieldObjects property for the same purpose, the declaration was removed, and usages of the old name changed to match the one defined in the parent class. Fixes #687
2021-08-15Remove invalid assignment by referenceDamien Regad1-1/+1
2021-08-15Coding guidelinesDamien Regad1-38/+29
2021-08-15mssql: duplicate key in SQLDate convert formatsDamien Regad1-1/+1
"y/m/d" key was defined both as 102 (ANSI) and 111 (Japan) (see #307). Updating the array to match documentation for ANSI, i.e. "y.m.d" [[1]]. Fixes #748 [1]: https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql
2021-08-15Align adodb-pdo_mysql.inc.php with masterDamien Regad1-6/+14
Cherry-picked e3c6301bff536c3021dfc03ef4286a035820fd0e to prevent merge conflicts.
2021-08-14Code cleanupDamien Regad1-19/+9
Follow-up on 2d1af4c43827183a14302cf3af127a96fc2e6496 - Whitespace/coding guidelines - PHPDoc - Remove unnecessary if statement
2021-08-14Affected_rows returns number instead of falseMark Newnham1-3/+26
mysql_affected_rows() returns a valid value (i.e. works as a rowcount function) when used against a SELECT statement. This does not conform to the ADOdb standard, which requires it to return false. Fixes #604 (PR #729)
2021-08-14Standard file header: /driversDamien Regad62-1083/+1319
2021-06-15Add support for metaIndexes see #733Mark Newnham1-0/+53
MetaIndexes not previously supported by PDO mysql driver. Fix recursion error introduced in affected_rows()
2021-06-13Fix recursion error in affected_rows()Mark Newnham1-3/+0