Handling restricted characters in a table
Jun 29, 2009 15:15:54 GMT -5
Post by mikegann on Jun 29, 2009 15:15:54 GMT -5
I have an application that stores some free form text entry in a SqLite database. When an apostrophe (') is present this causes a syntax error when I execute the database write.
How is this situation normally handled?
Search and replace the restricted characters in the string before the database write and the reverse when the data is retrieved?
Is there a list of other problematic characters?
Thanks,
Mike
How is this situation normally handled?
Search and replace the restricted characters in the string before the database write and the reverse when the data is retrieved?
Is there a list of other problematic characters?
Thanks,
Mike