summaryrefslogtreecommitdiff
path: root/drivers/adodb-sqlite.inc.php
diff options
context:
space:
mode:
authorMark Newnham <mark@newnhams.com>2016-01-06 16:44:05 -0700
committerDamien Regad <dregad@mantisbt.org>2016-01-07 09:27:23 +0100
commit87041044b2e25907bdbc5dfc49cc208d06f15890 (patch)
treeb87fdb70068c3f1d9c5fcbe063d279cf780b4aa3 /drivers/adodb-sqlite.inc.php
parent6e615f7ca0c88c3be1edbfcb120a1673ba808078 (diff)
downloadadodb-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.php23
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;
+ }
}