47 require_once
'MDB2/Driver/Function/Common.php';
81 return $db->query(
$query, $types, $result_class, $result_wrap_class);
118 return 'TO_CHAR(CURRENT_TIMESTAMP, \'YYYY-MM-DD HH24:MI:SS\')';
131 function substring($value, $position = 1, $length = null)
133 if (!is_null($length)) {
134 return "SUBSTR($value, $position, $length)";
136 return "SUBSTR($value, $position)";
150 return 'dbms_random.value';
& executeStoredProc($name, $params=null, $types=null, $result_class=true, $result_wrap_class=false)
Execute a stored procedure and return any results.
functionTable()
return string for internal table used when calling only a function
guid()
Returns global unique identifier.
now($type='timestamp')
Return string to call a variable with the current timestamp inside an SQL statement There are three s...
substring($value, $position=1, $length=null)
return string to call a function to get a substring inside an SQL statement
& getDBInstance()
Get the instance of MDB2 associated with the module instance.
random()
return string to call a function to get random value inside an SQL statement
isError($data, $code=null)
Tell whether a value is a PEAR error.