return '((' . $int1 . ') ^ (' . $int2 . '))';
}
+ /**
+ * Returns the FROM clause required by some DBs in all SELECT statements
+ * To be used in queries not having FROM clause to provide cross_db
+ * Most DBs don't need it, hence the default is ''
+ */
+ public function sql_null_from_clause() {
+ return '';
+ }
+
/**
* Returns the SQL to be used in order to CAST one CHAR column to INTEGER.
*
return '((' . $int1 . ') # (' . $int2 . '))';
}
+ function sql_null_from_clause() {
+ return ' FROM dual';
+ }
+
public function sql_cast_char2int($fieldname, $text=false) {
if (!$text) {
return ' CAST(' . $fieldname . ' AS INT) ';