Follow-up to #15457: Slightly modified API to be strict on param type guessing
authorXavier Perseguers <typo3@perseguers.ch>
Thu, 19 Aug 2010 19:01:02 +0000 (19:01 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Thu, 19 Aug 2010 19:01:02 +0000 (19:01 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8626 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/db/class.t3lib_db_PreparedStatement.php

index 41bb3e4..bc2636f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
 
 2010-08-19  Xavier Perseguers  <typo3@perseguers.ch>
 
+       * Follow-up to #15457: Slightly modified API to be strict on param type guessing
        * Added feature #15457: Add support for prepared queries
 
 2010-08-19  Francois Suter  <francois@typo3.org>
index 631e377..ec602c9 100644 (file)
@@ -397,9 +397,9 @@ class t3lib_db_PreparedStatement {
        protected function guessValueType($value) {
                if (is_bool($value)) {
                        $type = self::PARAM_BOOL;
-               } elseif (t3lib_div::testInt($value)) {
+               } elseif (is_int($value)) {
                        $type = self::PARAM_INT;
-               } elseif (is_null($value) || strtoupper($value) === 'NULL') {
+               } elseif (is_null($value)) {
                        $type = self::PARAM_NULL;
                } else {
                        $type = self::PARAM_STR;