| // +----------------------------------------------------------------------+ // // $Id$ require_once 'MDB2/Driver/Function/Common.php'; /** * MDB2 FireBird/InterBase driver for the function modules * * @package MDB2 * @category Database * @author Lukas Smith */ class MDB2_Driver_Function_ibase extends MDB2_Driver_Function_Common { // {{{ functionTable() /** * return string for internal table used when calling only a function * * @return string for internal table used when calling only a function * @access public */ function functionTable() { return ' FROM RDB$DATABASE'; } // }}} // {{{ length() /** * return string to call a function to get a replacement inside an SQL statement. * * @return string to call a function to get a replace * @access public */ function length($expression) { return "STRLEN($expression)"; } // }}} // {{{ replace() /** * return string to call a function to get a replacement inside an SQL statement. * * @return string to call a function to get a replace * @access public */ function replace($str, $from_str, $to_str) { $db = $this->getDBInstance(); if (MDB2::isError($db)) { return $db; } $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 'method not implemented', __FUNCTION__); return $error; } // }}} } ?>