add method castToText()

it takes a fieldname and returns it with a cast to 'text'
This commit is contained in:
Uwe Steinmann 2017-02-14 08:56:40 +01:00
parent e020ebaf39
commit 3da6d66ee1

View File

@ -539,6 +539,20 @@ class SeedDMS_Core_DatabaseAccess {
}
return '';
} /* }}} */
/**
* Return sql statement for returning the current timestamp
*
* @return string sql code
*/
function castToText($field) { /* {{{ */
switch($this->_driver) {
case 'pgsql':
return $field."::TEXT";
break;
}
return $field;
} /* }}} */
}
?>