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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -