| | |
| | | // | Author: Frank M. Kromann <frank@kromann.info> |
|
| | | // +----------------------------------------------------------------------+
|
| | | //
|
| | | // $Id: mssql.php,v 1.16 2008/02/17 18:54:08 quipo Exp $
|
| | | // $Id: mssql.php 292715 2009-12-28 14:06:34Z quipo $ |
| | | //
|
| | |
|
| | | require_once 'MDB2/Driver/Function/Common.php';
|
| | |
| | | */
|
| | | function substring($value, $position = 1, $length = null)
|
| | | {
|
| | | if (!is_null($length)) {
|
| | | if (null !== $length) { |
| | | return "SUBSTRING($value, $position, $length)";
|
| | | }
|
| | | return "SUBSTRING($value, $position, LEN($value) - $position + 1)";
|