Commit 9cdc298b authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic
Browse files

Bug 1811034: Upgrade ADODB to 5.20.14



behatnotneeded

Change-Id: I17a2c50f0d6be15a4d00a1917895c3908a60b02c
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 20f76ffc)
parent b186a4fe
...@@ -15,8 +15,8 @@ For more information about ADOdb, visit http://adodb.org/ ...@@ -15,8 +15,8 @@ For more information about ADOdb, visit http://adodb.org/
BSD 3-Clause License BSD 3-Clause License
-------------------- --------------------
(c) 2000-2013 John Lim (jlim@natsoft.com) (c) 2000-2013 John Lim (jlim@natsoft.com)
(c) 2014 Damien Regad, Mark Newnham and the ADOdb community (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, Redistribution and use in source and binary forms, with or without modification,
......
...@@ -2,7 +2,7 @@ adodb ...@@ -2,7 +2,7 @@ adodb
----- -----
Website: http://adodb.org/ Website: http://adodb.org/
Version: 5.20.12 Version: 5.20.14
Modifications: Modifications:
......
...@@ -9,10 +9,10 @@ ADOdb Library for PHP5 ...@@ -9,10 +9,10 @@ ADOdb Library for PHP5
[ADOdb community](https://github.com/ADOdb/ADOdb/graphs/contributors) [ADOdb community](https://github.com/ADOdb/ADOdb/graphs/contributors)
The ADOdb Library is dual-licensed, released under both the The ADOdb Library is dual-licensed, released under both the
[BSD 3-Clause](https://github.com/ADOdb/ADOdb/blob/master/LICENSE.md#bsd-3-clause-license) [BSD 3-Clause](https://github.com/ADOdb/ADOdb/blob/master/LICENSE.md#bsd-3-clause-license)
and the and the
[GNU Lesser General Public Licence (LGPL) v2.1](https://github.com/ADOdb/ADOdb/blob/master/LICENSE.md#gnu-lesser-general-public-license) [GNU Lesser General Public Licence (LGPL) v2.1](https://github.com/ADOdb/ADOdb/blob/master/LICENSE.md#gnu-lesser-general-public-license)
or, at your option, any later version. or, at your option, any later version.
This means you can use it in proprietary products; This means you can use it in proprietary products;
see [License](https://github.com/ADOdb/ADOdb/blob/master/LICENSE.md) for details. see [License](https://github.com/ADOdb/ADOdb/blob/master/LICENSE.md) for details.
......
<?php <?php
/* /*
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Latest version is available at http://adodb.sourceforge.net Latest version is available at http://adodb.org/
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses, Whenever there is any discrepancy between the two licenses,
......
<?php <?php
/* /*
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Latest version is available at http://adodb.sourceforge.net Latest version is available at http://adodb.org/
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses, Whenever there is any discrepancy between the two licenses,
......
...@@ -8,7 +8,7 @@ $ADODB_INCLUDED_CSV = 1; ...@@ -8,7 +8,7 @@ $ADODB_INCLUDED_CSV = 1;
/* /*
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
...@@ -16,14 +16,10 @@ $ADODB_INCLUDED_CSV = 1; ...@@ -16,14 +16,10 @@ $ADODB_INCLUDED_CSV = 1;
the BSD license will take precedence. See License.txt. the BSD license will take precedence. See License.txt.
Set tabs to 4 for best viewing. Set tabs to 4 for best viewing.
Latest version is available at http://adodb.sourceforge.net Latest version is available at http://adodb.org/
Library for CSV serialization. This is used by the csv/proxy driver and is the Library for CSV serialization. This is used by the csv/proxy driver and is the
CacheExecute() serialization format. CacheExecute() serialization format.
==== NOTE ====
Format documented at http://php.weblogs.com/ADODB_CSV
==============
*/ */
/** /**
......
<?php <?php
/** /**
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
......
<?php <?php
/** /**
* @version v5.20.12 30-Mar-2018 * @version v5.20.14 06-Jan-2019
* @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. * @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
* @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
* Released under both BSD license and Lesser GPL library license. * Released under both BSD license and Lesser GPL library license.
......
<?php <?php
/** /**
* @version v5.20.12 30-Mar-2018 * @version v5.20.14 06-Jan-2019
* @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. * @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
* @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
* Released under both BSD license and Lesser GPL library license. * Released under both BSD license and Lesser GPL library license.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* Set tabs to 4 for best viewing. * Set tabs to 4 for best viewing.
* *
* Latest version is available at http://php.weblogs.com * Latest version is available at http://adodb.org/
* *
*/ */
......
<?php <?php
/** /**
* @version v5.20.12 30-Mar-2018 * @version v5.20.14 06-Jan-2019
* @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. * @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
* @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
* Released under both BSD license and Lesser GPL library license. * Released under both BSD license and Lesser GPL library license.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* Set tabs to 4 for best viewing. * Set tabs to 4 for best viewing.
* *
* Latest version is available at http://php.weblogs.com * Latest version is available at http://adodb.org/
* *
*/ */
include_once('PEAR.php'); include_once('PEAR.php');
......
<?php <?php
/** /**
* @version v5.20.12 30-Mar-2018 * @version v5.20.14 06-Jan-2019
* @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. * @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
* @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
* Released under both BSD license and Lesser GPL library license. * Released under both BSD license and Lesser GPL library license.
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* Set tabs to 4 for best viewing. * Set tabs to 4 for best viewing.
* *
* Latest version is available at http://php.weblogs.com * Latest version is available at http://adodb.org/
* *
* Exception-handling code using PHP5 exceptions (try-catch-throw). * Exception-handling code using PHP5 exceptions (try-catch-throw).
*/ */
......
<?php <?php
/* /*
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
......
...@@ -6,7 +6,7 @@ global $ADODB_INCLUDED_LIB; ...@@ -6,7 +6,7 @@ global $ADODB_INCLUDED_LIB;
$ADODB_INCLUDED_LIB = 1; $ADODB_INCLUDED_LIB = 1;
/* /*
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
...@@ -218,6 +218,13 @@ function _adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=f ...@@ -218,6 +218,13 @@ function _adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=f
{ {
$hasvalue = false; $hasvalue = false;
if (is_array($name))
{
/*
* Reserved for future use
*/
}
if ($multiple or is_array($defstr)) { if ($multiple or is_array($defstr)) {
if ($size==0) $size=5; if ($size==0) $size=5;
$attr = ' multiple size="'.$size.'"'; $attr = ' multiple size="'.$size.'"';
...@@ -227,12 +234,15 @@ function _adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=f ...@@ -227,12 +234,15 @@ function _adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=f
$s = '<select name="'.$name.'"'.$attr.' '.$selectAttr.'>'; $s = '<select name="'.$name.'"'.$attr.' '.$selectAttr.'>';
if ($blank1stItem) if ($blank1stItem)
{
if (is_string($blank1stItem)) { if (is_string($blank1stItem)) {
$barr = explode(':',$blank1stItem); $barr = explode(':',$blank1stItem);
if (sizeof($barr) == 1) $barr[] = ''; if (sizeof($barr) == 1) $barr[] = '';
$s .= "\n<option value=\"".$barr[0]."\">".$barr[1]."</option>"; $s .= "\n<option value=\"".$barr[0]."\">".$barr[1]."</option>";
} else $s .= "\n<option></option>"; }
else
$s .= "\n<option></option>";
}
if ($zthis->FieldCount() > 1) $hasvalue=true; if ($zthis->FieldCount() > 1) $hasvalue=true;
else $compareFields0 = true; else $compareFields0 = true;
...@@ -248,34 +258,21 @@ function _adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=f ...@@ -248,34 +258,21 @@ function _adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=f
continue; continue;
} }
if ($fieldsize > 1) { $myFields = array_map('trim',array_values($zthis->fields));
if (isset($zthis->fields[1]))
$zval2 = rtrim($zthis->fields[1]); if ($fieldsize > 1) {
if (isset($myFields[1]))
$zval2 = $myFields[1];
else else
$zval2 = rtrim(next($zthis->fields)); $zval2 = next($myFields);
} }
$selected = ($compareFields0) ? $zval : $zval2; $selected = ($compareFields0) ? $zval : $zval2;
$group = '';
if ($fieldsize > 2) {
$group = rtrim($zthis->fields[2]);
}
/*
if ($optgroup != $group) {
$optgroup = $group;
if ($firstgroup) {
$firstgroup = false;
$s .="\n<optgroup label='". htmlspecialchars($group) ."'>";
} else {
$s .="\n</optgroup>";
$s .="\n<optgroup label='". htmlspecialchars($group) ."'>";
}
}
*/
if ($hasvalue) if ($hasvalue)
$value = " value='".htmlspecialchars($zval2)."'"; $value = " value='".htmlspecialchars($zval2)."'";
if (is_array($defstr)) { if (is_array($defstr))
{
if (in_array($selected,$defstr)) if (in_array($selected,$defstr))
$s .= "\n<option selected='selected'$value>".htmlspecialchars($zval).'</option>'; $s .= "\n<option selected='selected'$value>".htmlspecialchars($zval).'</option>';
...@@ -291,10 +288,6 @@ function _adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=f ...@@ -291,10 +288,6 @@ function _adodb_getmenu(&$zthis, $name,$defstr='',$blank1stItem=true,$multiple=f
$zthis->MoveNext(); $zthis->MoveNext();
} // while } // while
// closing last optgroup
if($optgroup != null) {
$s .= "\n</optgroup>";
}
return $s ."\n</select>\n"; return $s ."\n</select>\n";
} }
...@@ -304,6 +297,13 @@ function _adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multipl ...@@ -304,6 +297,13 @@ function _adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multipl
{ {
$hasvalue = false; $hasvalue = false;
if (is_array($name))
{
/*
* Reserved for future use
*/
}
if ($multiple or is_array($defstr)) { if ($multiple or is_array($defstr)) {
if ($size==0) $size=5; if ($size==0) $size=5;
$attr = ' multiple size="'.$size.'"'; $attr = ' multiple size="'.$size.'"';
...@@ -323,9 +323,9 @@ function _adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multipl ...@@ -323,9 +323,9 @@ function _adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multipl
else $compareFields0 = true; else $compareFields0 = true;
$value = ''; $value = '';
$optgroup = null; $optgroup = null;
$firstgroup = true; $firstgroup = true;
$fieldsize = sizeof($zthis->fields); $fieldsize = sizeof($zthis->fields);
while(!$zthis->EOF) { while(!$zthis->EOF) {
$zval = rtrim(reset($zthis->fields)); $zval = rtrim(reset($zthis->fields));
...@@ -334,28 +334,32 @@ function _adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multipl ...@@ -334,28 +334,32 @@ function _adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multipl
continue; continue;
} }
if ($fieldsize > 1) { $myFields = array_map('trim',array_values($zthis->fields));
if (isset($zthis->fields[1]))
$zval2 = rtrim($zthis->fields[1]); if ($fieldsize > 1) {
if (isset($myFields[1]))
$zval2 = $myFields[1];
else else
$zval2 = rtrim(next($zthis->fields)); $zval2 = next($myFields);
} }
$selected = ($compareFields0) ? $zval : $zval2; $selected = ($compareFields0) ? $zval : $zval2;
$group = ''; $group = '';
if (isset($zthis->fields[2])) {
$group = rtrim($zthis->fields[2]); if (isset($myFields[2])) {
} $group = $myFields[2];
}
if ($optgroup != $group) { if ($optgroup != $group) {
$optgroup = $group; $optgroup = $group;
if ($firstgroup) { if ($firstgroup) {
$firstgroup = false; $firstgroup = false;
$s .="\n<optgroup label='". htmlspecialchars($group) ."'>"; $s .="\n<optgroup label='". htmlspecialchars($group) ."'>";
} else { } else {
$s .="\n</optgroup>"; $s .="\n</optgroup>";
$s .="\n<optgroup label='". htmlspecialchars($group) ."'>"; $s .="\n<optgroup label='". htmlspecialchars($group) ."'>";
} }
} }
if ($hasvalue) if ($hasvalue)
...@@ -377,14 +381,13 @@ function _adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multipl ...@@ -377,14 +381,13 @@ function _adodb_getmenu_gp(&$zthis, $name,$defstr='',$blank1stItem=true,$multipl
$zthis->MoveNext(); $zthis->MoveNext();
} // while } // while
// closing last optgroup // closing last optgroup
if($optgroup != null) { if($optgroup != null) {
$s .= "\n</optgroup>"; $s .= "\n</optgroup>";
} }
return $s ."\n</select>\n"; return $s ."\n</select>\n";
} }
/* /*
Count the number of records this sql statement will return by using Count the number of records this sql statement will return by using
query rewriting heuristics... query rewriting heuristics...
...@@ -418,8 +421,10 @@ function _adodb_getcount(&$zthis, $sql,$inputarr=false,$secs2cache=0) ...@@ -418,8 +421,10 @@ function _adodb_getcount(&$zthis, $sql,$inputarr=false,$secs2cache=0)
} else if (strncmp($zthis->databaseType,'postgres',8) == 0 } else if (strncmp($zthis->databaseType,'postgres',8) == 0
|| strncmp($zthis->databaseType,'mysql',5) == 0 || strncmp($zthis->databaseType,'mysql',5) == 0
|| strncmp($zthis->databaseType,'mssql',5) == 0 || strncmp($zthis->databaseType,'mssql',5) == 0
) { || strncmp($zthis->dsnType,'sqlsrv',5) == 0
|| strncmp($zthis->dsnType,'mssql',5) == 0
){
$rewritesql = "SELECT COUNT(*) FROM ($rewritesql) _ADODB_ALIAS_"; $rewritesql = "SELECT COUNT(*) FROM ($rewritesql) _ADODB_ALIAS_";
} else { } else {
$rewritesql = "SELECT COUNT(*) FROM ($rewritesql)"; $rewritesql = "SELECT COUNT(*) FROM ($rewritesql)";
...@@ -769,7 +774,7 @@ function _adodb_getupdatesql(&$zthis,&$rs, $arrFields,$forceUpdate=false,$magicq ...@@ -769,7 +774,7 @@ function _adodb_getupdatesql(&$zthis,&$rs, $arrFields,$forceUpdate=false,$magicq
if (preg_match('/\s(ORDER\s.*)/is', $whereClause[1], $discard)); if (preg_match('/\s(ORDER\s.*)/is', $whereClause[1], $discard));
else if (preg_match('/\s(LIMIT\s.*)/is', $whereClause[1], $discard)); else if (preg_match('/\s(LIMIT\s.*)/is', $whereClause[1], $discard));
else if (preg_match('/\s(FOR UPDATE.*)/is', $whereClause[1], $discard)); else if (preg_match('/\s(FOR UPDATE.*)/is', $whereClause[1], $discard));
else preg_match('/\s.*(\) WHERE .*)/is', $whereClause[1], $discard); # see http://sourceforge.net/tracker/index.php?func=detail&aid=1379638&group_id=42718&atid=433976 else preg_match('/\s.*(\) WHERE .*)/is', $whereClause[1], $discard); # see https://sourceforge.net/p/adodb/bugs/37/
} else } else
$whereClause = array(false,false); $whereClause = array(false,false);
......
...@@ -11,7 +11,7 @@ if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php'); ...@@ -11,7 +11,7 @@ if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php');
/* /*
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
...@@ -19,7 +19,7 @@ if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php'); ...@@ -19,7 +19,7 @@ if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php');
the BSD license will take precedence. See License.txt. the BSD license will take precedence. See License.txt.
Set tabs to 4 for best viewing. Set tabs to 4 for best viewing.
Latest version is available at http://adodb.sourceforge.net Latest version is available at http://adodb.org/
Usage: Usage:
......
<?php <?php
/* /*
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
......
<?php <?php
/** /**
* @version v5.20.12 30-Mar-2018 * @version v5.20.14 06-Jan-2019
* @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. * @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
* @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community * @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
* Released under both BSD license and Lesser GPL library license. * Released under both BSD license and Lesser GPL library license.
......
<?php <?php
/* /*
@version v5.20.12 30-Mar-2018 @version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
Released under both BSD license and Lesser GPL library license. Released under both BSD license and Lesser GPL library license.
......
<?php <?php
/* /*
ADOdb Date Library, part of the ADOdb abstraction library ADOdb Date Library, part of the ADOdb abstraction library
Download: http://adodb.sourceforge.net/#download
@version v5.20.12 30-Mar-2018 Latest version is available at http://adodb.org/
@version v5.20.14 06-Jan-2019
@copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
@copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
...@@ -420,6 +421,9 @@ $ADODB_DATETIME_CLASS = (PHP_VERSION >= 5.2); ...@@ -420,6 +421,9 @@ $ADODB_DATETIME_CLASS = (PHP_VERSION >= 5.2);
if (!defined('ADODB_ALLOW_NEGATIVE_TS')) define('ADODB_NO_NEGATIVE_TS',1); if (!defined('ADODB_ALLOW_NEGATIVE_TS')) define('ADODB_NO_NEGATIVE_TS',1);
if (!DEFINED('ADODB_FUTURE_DATE_CUTOFF_YEARS'))
DEFINE('ADODB_FUTURE_DATE_CUTOFF_YEARS',200);