47 require_once
'MDB2/Driver/Function/Common.php';
72 function &
executeStoredProc($name, $params = null, $types = null, $result_class =
true, $result_wrap_class =
false)
80 $query .= $params ?
'('.implode(
', ', $params).
')' :
'()';
81 return $db->query(
$query, $types, $result_class, $result_wrap_class);
111 function now($type =
'timestamp')
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';