return '';
}
+ /**
+ * Returns the correct CEIL expression applied to fieldname
+ * @param string fieldname the field (or expression) we are going to ceil
+ * @return string the piece of SQL code to be used in your ceiling statement
+ * Most DB use CEIL(), hence it's the default.
+ */
+ public function sql_ceil($fieldname) {
+ return ' CEIL(' . $fieldname . ')';
+ }
+
/**
* Returns the SQL to be used in order to CAST one CHAR column to INTEGER.
*
return SQL_PARAMS_QM;
}
+ public function sql_ceil($fieldname) {
+ return ' CEILING(' . $fieldname . ')';
+ }
+
public function sql_cast_char2int($fieldname, $text=false) {
if (!$text) {
return ' CAST(' . $fieldname . ' AS INT) ';