summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class5
1 files changed, 5 insertions, 0 deletions
diff --git a/it_dbi.class b/it_dbi.class
index c9cef54..6e34002 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -956,6 +956,11 @@ function _get_field_info()
$this->_convertfunc[$name] = $field['_convertfunc'];
$this->_escapefunc[$name] = $field['_escapefunc'];
}
+ else if ($field['Type'] == 'tinyint(1)')
+ {
+ $this->_convertfunc[$name] = 'boolval';
+ $this->_escapefunc[$name] = 'it_dbi::escape_bool';
+ }
else if (preg_match('/^(tiny|small|medium|)int|^float|^double$/', $field['Type']))
$this->_convertfunc[$name] = it::match('int', $field['Type']) ? "intval" : "floatval";
}