summaryrefslogtreecommitdiff
path: root/adodb-datadict.inc.php
diff options
context:
space:
mode:
authorMark Newnham <mark@newnhams.com>2016-01-30 12:37:37 -0700
committerDamien Regad <dregad@mantisbt.org>2016-01-31 11:23:51 +0100
commit6005cb728243288093ea4c32112d350c138adf30 (patch)
treefa08091b52df6195a0d842bdeb1a1e57b93b9f3e /adodb-datadict.inc.php
parentbcfce82f1de8ec85e84023399b279838bf161e6b (diff)
downloadadodb-6005cb728243288093ea4c32112d350c138adf30.tar.gz
adodb-6005cb728243288093ea4c32112d350c138adf30.tar.bz2
adodb-6005cb728243288093ea4c32112d350c138adf30.zip
A user-defined default Metatype is now available
The user can now define a constant ADODB_DEFAULT_METATYPE. This overrides the original default value of 'N' and allows the user to control how a field of unknown metaType is presented. The constant controls the behavior of the returned value from the method MetaType(). Fixes #165
Diffstat (limited to 'adodb-datadict.inc.php')
-rw-r--r--adodb-datadict.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb-datadict.inc.php b/adodb-datadict.inc.php
index ec6d4603..adeecdd0 100644
--- a/adodb-datadict.inc.php
+++ b/adodb-datadict.inc.php
@@ -326,7 +326,7 @@ class ADODB_DataDict {
if (!$this->connection->IsConnected()) {
$t = strtoupper($t);
if (isset($typeMap[$t])) return $typeMap[$t];
- return 'N';
+ return ADODB_DEFAULT_METATYPE;
}
return $this->connection->MetaType($t,$len,$fieldobj);
}