Escape reserved separator identifiers in MySQL SQL

This commit is contained in:
2026-07-20 17:19:09 +08:00 Unverified
parent 1a87e06fc8
commit a30477bb58
4 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -708,7 +708,7 @@ export const mysqlSchema = [
code VARCHAR(80) NOT NULL,
name VARCHAR(160) NOT NULL,
description VARCHAR(500) NOT NULL,
separator VARCHAR(10) NOT NULL DEFAULT '',
\`separator\` VARCHAR(10) NOT NULL DEFAULT '',
segments_json JSON NOT NULL,
example VARCHAR(120) NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
@@ -824,7 +824,7 @@ export const mysqlSchema = [
`CREATE TABLE IF NOT EXISTS number_rules (
id VARCHAR(64) NOT NULL,
name VARCHAR(120) NOT NULL,
separator VARCHAR(10) NOT NULL DEFAULT '',
\`separator\` VARCHAR(10) NOT NULL DEFAULT '',
active BOOLEAN NOT NULL DEFAULT FALSE,
created_by VARCHAR(64) NULL,
updated_at VARCHAR(35) NOT NULL,