lua-users home
lua-l archive

Re: when I insert table, value is a string contains apostrophe - it throws an error there - how to fix

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Florian Weimer a écrit :
* noel frankinet:
For instance, for PostgreSQL, LuaSQL offers a conn:escape(str) method
which is implemented by the PostgreSQL folks themselves and thus very
likely correct (but the older version wasn't for multi-byte encodings
*sigh*).
It's standard sql
Sure, but your database is very likely not.
anyway it works for sqlite
Noel

AltStyle によって変換されたページ (->オリジナル) /