]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/field.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 1 Mar 2017 16:10:43 +0000 (16:10 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 1 Mar 2017 16:10:43 +0000 (16:10 +0000)
lib/php/db/field.php

index a7e5d34419edbfa4ea619c7d210c98065d9be110..04e4b496e83c47fd6ccecc3f18c31f1100748fde 100644 (file)
@@ -51,7 +51,7 @@ class field extends nb {
   }
 
   public function numeric() {
-    return preg_match('/signed|(snall )?int|float|decimal|numeric|number|currency/i',$this->type) ? true : false;
+    return preg_match('/signed|(small|tiny)?int|float|decimal|numeric|number|currency/i',$this->type) ? true : false;
   }
 
   public function unsigned() {