문제

I am working with a production app, where a mistake has been made in an SQLite query.

Basically the query should be:

 "SELECT * FROM people WHERE id =..."

However the actual query that went into production is

  "SELECT * FROM people WHERE AND id =..."

Is there a way to add a user defined statement to 'ignore' the accidental 'AND' in this query? Or is there another method of doing this?

I can make remote updates to databases, by executing SQL but that is about it. I can also get users to replace the database file by downloading a new one, so I can make an update at this side and distribute if need be.

도움이 되었습니까?

해결책

Nothing in a database file can modify queries executed by your application.

You have to replace the application.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top