When a TMSQuery is used as dataset, a dataset.Post fails for a dataset that is in edit mode, IF the select query (in sql) refers to a table containing a column with a period in its name. At the same time, dataset.Post succeeds when dataset is in insert mode.
The exception that occurs:
Incorrect syntax near '='.
Notes
- The exception occurs even if the sql contains no '=' (no where clause in the select * from tablename)
- The exception does NOT occur if everywhere (both in table-column definition) the '.' is replaced by e.g. '_'.
- A different exception (
Incorrect syntax near 'AS'
) may occur for a slightly more complex query, refering to columns containing multiple '.'