summaryrefslogtreecommitdiff
path: root/adodb-lib.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2022-07-23 11:59:24 +0200
committerDamien Regad <dregad@mantisbt.org>2022-08-26 16:13:34 +0200
commit940dcec049491189102d18f4bc34238e0838a73c (patch)
treeca1ee958aca5ec4d5e426208ca4594d5dfac6f49 /adodb-lib.inc.php
parent3aa30417b062b6c1815402822d35919670ce353b (diff)
downloadadodb-940dcec049491189102d18f4bc34238e0838a73c.tar.gz
adodb-940dcec049491189102d18f4bc34238e0838a73c.tar.bz2
adodb-940dcec049491189102d18f4bc34238e0838a73c.zip
New class constant ADORecordSet::DUMMY_QUERY_ID
Replace hardcoded '-1' value when creating dummy RecordSets. Issue #848
Diffstat (limited to 'adodb-lib.inc.php')
-rw-r--r--adodb-lib.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb-lib.inc.php b/adodb-lib.inc.php
index 24c230d4..1a7f3d43 100644
--- a/adodb-lib.inc.php
+++ b/adodb-lib.inc.php
@@ -893,7 +893,7 @@ static $cacheCols;
//because we have to call MetaType.
//php can't do a $rsclass::MetaType()
$rsclass = $zthis->rsPrefix.$zthis->databaseType;
- $recordSet = new $rsclass(-1,$zthis->fetchMode);
+ $recordSet = new $rsclass(ADORecordSet::DUMMY_QUERY_ID, $zthis->fetchMode);
$recordSet->connection = $zthis;
if (is_string($cacheRS) && $cacheRS == $rs) {