summaryrefslogtreecommitdiff
path: root/adodb-error.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'adodb-error.inc.php')
-rw-r--r--adodb-error.inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/adodb-error.inc.php b/adodb-error.inc.php
index 68b6d7e2..020f65d0 100644
--- a/adodb-error.inc.php
+++ b/adodb-error.inc.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version v5.20.10 08-Mar-2018
+ * @version v5.21.0-dev ??-???-2016
* @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
* @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
* Released under both BSD license and Lesser GPL library license.
@@ -70,6 +70,10 @@ function adodb_error($provider,$dbType,$errno)
case 'oracle':
case 'oci8': $map = adodb_error_oci8(); break;
+ // As discussed in https://github.com/ADOdb/ADOdb/issues/201#issuecomment-188154980
+ // firebird uses the ibase error handler for now. This may change if and
+ // when the PHP driver is updated to use the new SQLSTATE error codes
+ case 'firebird':
case 'ibase': $map = adodb_error_ibase(); break;
case 'odbc': $map = adodb_error_odbc(); break;