SQLite/FoxPro Update can't find record using = but finds it using LIKE -
i'm converting foxpro database sqlite, , migrating instructions update, found problem.
if inside foxpro use update fact01 set motivo = 'asdfgh' tipodoc='fv'
rows not updated.
but if use update fact01 set motivo = 'asdfgh' tipodoc 'fv'
rows changed.
if first instruction inside sqlite engine, rows changed. field type tipodoc nchar(2).
also, if select * fact01 tipodoc ='fv'
statement inside foxpro works ok.
any idea what's happening here?
i'm not sure if it's due fact nchar can store unicode data or way data in general stored. wrapping alltrim around clause may correct problem.
update fact01 set motivo = 'asdfgh' alltrim(tipodoc)='fv'
Comments
Post a Comment