diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-02 14:15:12 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-02 14:15:12 +0100 |
| commit | 4d4566b92447d5e7d749cbf33a4ee28e468a4477 (patch) | |
| tree | 9ce880171bd5d91466bb247478fe86240762977c /drivers | |
| parent | 18298475db4d82203c2944b037eed391d0d59ee2 (diff) | |
| download | adodb-4d4566b92447d5e7d749cbf33a4ee28e468a4477.tar.gz adodb-4d4566b92447d5e7d749cbf33a4ee28e468a4477.tar.bz2 adodb-4d4566b92447d5e7d749cbf33a4ee28e468a4477.zip | |
pdo_firebird: override sysDate and sysTimeStamp from pdo_base defaultsHEADv5.22.11-lsc
ADODB_pdo_base defaults both to '?' which _UpdatePDO() copies to the
parent ADODB_pdo connection. pdo_firebird must declare its own values
so DEFTIMESTAMP generates LOCALTIMESTAMP rather than '?'.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'drivers')
| -rwxr-xr-x | drivers/adodb-pdo_firebird.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/adodb-pdo_firebird.inc.php b/drivers/adodb-pdo_firebird.inc.php index dd6dd474..24f46aa7 100755 --- a/drivers/adodb-pdo_firebird.inc.php +++ b/drivers/adodb-pdo_firebird.inc.php @@ -28,6 +28,8 @@ class ADODB_pdo_firebird extends ADODB_pdo_base { public $dialect = 3; public $nameQuote = ''; + var $sysDate = "cast('TODAY' as timestamp)"; + var $sysTimeStamp = "LOCALTIMESTAMP"; public $metaTablesSQL = "select lower(rdb\$relation_name) from rdb\$relations where rdb\$relation_name not like 'RDB\$%' and rdb\$relation_name not like 'MON\$%' and rdb\$relation_name not like 'SEC\$%'"; public $metaColumnsSQL = "select lower(a.rdb\$field_name), a.rdb\$null_flag, a.rdb\$default_source, b.rdb\$field_length, b.rdb\$field_scale, b.rdb\$field_sub_type, b.rdb\$field_precision, b.rdb\$field_type from rdb\$relation_fields a, rdb\$fields b where a.rdb\$field_source = b.rdb\$field_name and a.rdb\$relation_name = '%s' order by a.rdb\$field_position asc"; |
