diff options
| author | Mark Newnham <mark@newnhams.com> | 2016-01-06 16:44:05 -0700 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2016-01-07 09:27:23 +0100 |
| commit | 87041044b2e25907bdbc5dfc49cc208d06f15890 (patch) | |
| tree | b87fdb70068c3f1d9c5fcbe063d279cf780b4aa3 /drivers/adodb-sqlite.inc.php | |
| parent | 6e615f7ca0c88c3be1edbfcb120a1673ba808078 (diff) | |
| download | adodb-87041044b2e25907bdbc5dfc49cc208d06f15890.tar.gz adodb-87041044b2e25907bdbc5dfc49cc208d06f15890.tar.bz2 adodb-87041044b2e25907bdbc5dfc49cc208d06f15890.zip | |
sqlite: Adds charmax() and textmax() methods
Methods are added to both sqlite & sqlite3 driver.
Fixes #183
Diffstat (limited to 'drivers/adodb-sqlite.inc.php')
| -rw-r--r-- | drivers/adodb-sqlite.inc.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/adodb-sqlite.inc.php b/drivers/adodb-sqlite.inc.php index 5dad4672..94af003d 100644 --- a/drivers/adodb-sqlite.inc.php +++ b/drivers/adodb-sqlite.inc.php @@ -348,6 +348,29 @@ class ADODB_sqlite extends ADOConnection { } return $indexes; } + + /* + * Returns the maximum size of a MetaType C field. Because of the + * database design, sqlite places no limits on the size of data inserted + * + * @return int + */ + function charMax() + { + return ADODB_STRINGMAX_NOLIMIT; + } + + /* + * Returns the maximum size of a MetaType X field. Because of the + * database design, sqlite places no limits on the size of data inserted + * + * + * @return int + */ + function textMax() + { + return ADODB_STRINGMAX_NOLIMIT; + } } |
