antares icon indicating copy to clipboard operation
antares copied to clipboard

Table and column names with hyphens are not handled properly for SQLite queries

Open jalcam opened this issue 2 years ago • 0 comments

Describe the bug When performing queries such as UPDATE or INSERT using the GUI, errors occur because by default Antares does not apply quotation marks to table or column names that have hyphens in their name.

Message: SqliteError: near "-" : syntax error

This can be corrected manually by putting the quotes and executing the query.

To Reproduce

Insert a new row into a table with column names that have hyphens in their name using the GUI tool.

  1. Go to 'Insert rows'
  2. Fill the data to be inserted
  3. Click "insert"
  4. See error

Expected behavior The query should run without errors, as long as table or column names with hyphens in the name are enclosed in quotation marks.

Screenshots Screenshots are attached.

Screenshot from 2024-10-31 12-28-05 Screenshot from 2024-10-31 12-28-46

Example with quotation marks:

Screenshot from 2024-10-31 12-33-33

Application (please complete the following information):

  • App client: Antares
  • App version: 0.7.29
  • Installation source: Snap

Environment (please complete the following information):

  • OS name: Ubuntu 24.04 x86_64 Linux kernel 6.8.0-48-generic
  • DB name: SQLite
  • DB version: 3.45.1

jalcam avatar Oct 31 '24 17:10 jalcam