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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -