85 'method not implemented', __FUNCTION__);
116 function now($type =
'timestamp')
120 return 'CURRENT_TIME';
122 return 'CURRENT_DATE';
125 return 'CURRENT_TIMESTAMP';
138 function substring($value, $position = 1, $length = null)
140 if (!is_null($length)) {
141 return "SUBSTRING($value FROM $position FOR $length)";
143 return "SUBSTRING($value FROM $position)";
160 $args = func_get_args();
161 return "(".implode(
' || ', $args).
")";
190 return "LOWER($expression)";
205 return "UPPER($expression)";
225 'method not implemented', __FUNCTION__);
guid()
Returns global unique identifier.
random()
return string to call a function to get random value inside an SQL statement
const MDB2_ERROR_UNSUPPORTED
upper($expression)
return string to call a function to upper the case of an expression
substring($value, $position=1, $length=null)
return string to call a function to get a substring inside an SQL statement
concat($value1, $value2)
Returns string to concatenate two or more string parameters.
now($type='timestamp')
Return string to call a variable with the current timestamp inside an SQL statement There are three s...
& getDBInstance()
Get the instance of MDB2 associated with the module instance.
functionTable()
return string for internal table used when calling only a function
lower($expression)
return string to call a function to lower the case of an expression
& executeStoredProc($name, $params=null, $types=null, $result_class=true, $result_wrap_class=false)
Execute a stored procedure and return any results.
isError($data, $code=null)
Tell whether a value is a PEAR error.