On 02/10/2011 01:56 AM, Vannus wrote:
> Zeoslib is reading sqlite field lengths incorrectly, as it checks for
> brackets after the field typename ie. CHAR(123)
> presumably this is only affecting me because I haven't defined field lengths
> in my sqlite3 db.
>
> I don't want to hard-code 1,000,000,000 or 2147483647 in as the field length
> - but how do I check what SQLITE_MAX_LENGTH or the limit imposed by
> sql_limit or sqlite3_limit is?

At http://www.sqlite.org/c3ref/limit.html the third paragraph
has:

   Regardless of whether or not the limit was changed, the
   sqlite3_limit() interface returns the prior value of the limit.
   Hence, to find the current value of a limit without changing it,
   simply invoke this interface with the third parameter set to -1.

Maybe you can use that.

Dan.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to