src/Data/BizField.php
public function getSqlValue($input = null)
    {
        $value = ($input !== null) ? $input : $this->value;
        if ($value === null) {
            return "";
        }
        /*
          if ($this->type != 'Number')
          {
          if (get_magic_quotes_gpc() == 0) {
          $val = addcslashes($value, "\000\n\r\\'\"\032");
          }
          return "'$value'";
          }
         */

        return $value;
    }
public function getSqlValue($input = null)
    {
        $value = ($input !== null) ? $input : $this->value;
        if ($value === null) {
            return "";
        }
        /*
          if ($this->type != 'Number')
          {
          if (get_magic_quotes_gpc() == 0) {
          $val = addcslashes($value, "\000\n\r\\'\"\032");
          }
          return "'$value'";
          }
         */

        return $value;
    }
Get string used in sql - with single quote, or without single quote in case of number

@param mixed $input the value to add quote. If null, use the current field value
@return string string used in sql