diff --git a/dibi/libs/DibiTranslator.php b/dibi/libs/DibiTranslator.php index c3a472fcd..2ee942836 100644 --- a/dibi/libs/DibiTranslator.php +++ b/dibi/libs/DibiTranslator.php @@ -332,10 +332,12 @@ public function formatValue($value, $modifier) case 'b': // boolean return $value === NULL ? 'NULL' : $this->driver->escape($value, $modifier); - case 'sn': // string or NULL + case 'sN': // string or NULL + case 'sn': return $value == '' ? 'NULL' : $this->driver->escape($value, dibi::TEXT); // notice two equal signs - case 'in': // signed int or NULL + case 'iN': // signed int or NULL + case 'in': // deprecated if ($value == '') $value = NULL; // intentionally break omitted