diff options
author | Nathan Gass | 2023-02-28 14:46:49 +0100 |
---|---|---|
committer | Nathan Gass | 2023-02-28 18:57:56 +0100 |
commit | 305fa5f80db7691597abc607020622e7c065eaed (patch) | |
tree | b1351a727eb4db96e25db2c5891f96c60a9472a5 /it_dbi.class | |
parent | 738295ba1efa2bbb4eefca5966fe87474df3ab30 (diff) | |
download | itools-305fa5f80db7691597abc607020622e7c065eaed.tar.gz itools-305fa5f80db7691597abc607020622e7c065eaed.tar.bz2 itools-305fa5f80db7691597abc607020622e7c065eaed.zip |
Revert "special handling of boolean columns (accept false as value without warning)"
This reverts commit efeb9c4a97668672f8aaa263e4937461f0b1b725.
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/it_dbi.class b/it_dbi.class index 6e34002..c9cef54 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -956,11 +956,6 @@ 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"; } |