[MDEV-19142] sql_mode=MSSQL: Bracket identifiers Created: 2019-04-02  Updated: 2019-04-15  Resolved: 2019-04-15

Status: Closed
Project: MariaDB Server
Component/s: Parser
Fix Version/s: 10.4.5

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: Compatibility

Issue Links:
Blocks
blocks MDEV-19042 Implement sql_mode=MSSQL Open

 Description   

SQL Server understands bracket identifiers (in addition to the SQL Standard double-quoted identifiers), so these scripts are equivalent:

SELECT
  [column]
FROM
  [my table]
WHERE
  [order] = 10;

SELECT
  "column"
FROM
  "my table"
WHERE
  "order" = 10;

We'll extend the parser to understand bracket identifiers when sql_mode has the MSSQL flag.

Bracket identifiers will be accepted in all contexts where double-quoted identifiers are possible, including but not limited to:

  • Direct SQL
  • Dynamic SQL (PREPARE/EXECUTE/EXECUTE IMMEDIATE)
  • Stored procedures

This will help SQL Server users to migrate to MariaDB easier.


Generated at Thu Feb 08 08:49:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.