Ticket #391 (closed defect: fixed)
SQLite driver doesn't complain enough with stupid mistakes
| Reported by: | hamish | Owned by: | grass-dev@… |
|---|---|---|---|
| Priority: | major | Milestone: | 6.4.0 |
| Component: | Database | Version: | svn-develbranch6 |
| Keywords: | sqlite | Cc: | |
| Platform: | Linux | CPU: | Unspecified |
Description
Using the SQLite driver, the following v.db.addcol command runs without error:
G64:spearf> g.copy vect=archsites,tmp_arch G64:spearf> v.db.addcol tmp_arch column='x double y double'
(typo, no comma between column defs)
but when you try and do something with it you get an error:
G64:spearf> v.info -c tmp_arch Displaying column types/names for database connection of layer 1: WARNING: SQLite driver: unable to parse decltype: double y double WARNING: SQLite driver: unable to parse decltype: double y double WARNING: SQLite driver: column 'x', SQLite type 2 is not supported INTEGER|cat CHARACTER|str1
a fatal error from v.db.addcol or from the driver would be nice.
Hamish
Change History
Note: See
TracTickets for help on using
tickets.
