Quantcast
Channel: SCN: Message List - SAP Advantage Database Server
Viewing all articles
Browse latest Browse all 997

Re: ADS SQL does not accept backticks round keywords - why not?

$
0
0

This probably doesn't help you, but the ANSI SQL-92 way to quote reserved identifiers is double-quotes.

 

UPDATE MyDB SET "READ" = 'Something'

 

Single-quotes are for string literals only and backticks are only accepted by MySQL (AFAIK).

 

Square brackets ([]) come from Microsoft SQL Server and ADS happens to support these as well.

 

ADS also accepts ANSI SQL-92 double quotes, as many other databases do. MySQL is "the weirdo" here.

 

MySQL does support ANSI SQL quotes, if the correct SQL MODE is set: MySQL :: MySQL 5.7 Reference Manual :: 5.1.7 Server SQL Modes

 

My suggestion would be to change the SQL code generator to support double-quotes. If you use a third party tool, you should file a bug report with the third party vendor.


Viewing all articles
Browse latest Browse all 997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>