program/lib/MDB2/Driver/Function/sqlite.php
@@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // // $Id: sqlite.php,v 1.10 2008/02/17 18:54:08 quipo Exp $ // $Id: sqlite.php 292715 2009-12-28 14:06:34Z quipo $ // require_once 'MDB2/Driver/Function/Common.php'; @@ -116,7 +116,7 @@ */ function substring($value, $position = 1, $length = null) { if (!is_null($length)) { if (null !== $length) { return "substr($value,$position,$length)"; } return "substr($value,$position,length($value))";