While working with the attached DB (sqlite feature), I discovered a new problem.
When a query is made to a table from the attached DB, the following call chain is executed
Code: Select all
1. TZSQLiteDatabaseMetadata.UncachedGetColumns
2. FillResult
3. IsAutoIncrement
Code: Select all
with GetStatement.ExecuteQuery('select sql from sqlite_master where name = '''+TableName+'''') do
Code: Select all
Assert (CreateSQL <> '')
So my first question is: can i use this trick (disabling Assertions) or it is strongly not reccomended?
This is one half of the problem.
The other part of the problem is that the call
Code: Select all
Result.UpdateBoolean (TableColColumnReadonlyIndex, [Boolean]);
I cant to talk about it is correct or not without knowing all details.
But something tells me that one of the calls is clearly superfluous.