MySQL: Quote identifiers that include special characters (#61135)
* SQL: toRawSQL required and escape table
* Fix autocomplete for MySQL
* Change the way we escape for builder
* Rework escape ident to be smart instead
* Fix A11y for alias
* Add first e2e test
* Add test for code editor
* Add doc
* Review comments
* Move functions to sqlUtil
(cherry picked from commit 62c30dea4d)
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
28 lines
869 B
JSON
28 lines
869 B
JSON
{
|
|
"results": {
|
|
"fields": {
|
|
"status": 200,
|
|
"frames": [
|
|
{
|
|
"schema": {
|
|
"refId": "fields",
|
|
"meta": {
|
|
"executedQueryString": "SELECT column_name, data_type FROM information_schema.columns WHERE table_schema = 'DataMaker' AND table_name = 'RandomIntsWithTimes' ORDER BY column_name"
|
|
},
|
|
"fields": [
|
|
{ "name": "COLUMN_NAME", "type": "string", "typeInfo": { "frame": "string", "nullable": true } },
|
|
{ "name": "DATA_TYPE", "type": "string", "typeInfo": { "frame": "string", "nullable": true } }
|
|
]
|
|
},
|
|
"data": {
|
|
"values": [
|
|
["createdAt", "id", "time", "updatedAt", "bigint"],
|
|
["datetime", "int", "datetime", "datetime", "int"]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|