mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
dont autoquote, suggest quoted values if requried
This commit is contained in:
@ -31,6 +31,14 @@ export default class PostgresQuery {
|
||||
this.updateProjection();
|
||||
}
|
||||
|
||||
unquoteIdentifier(value) {
|
||||
if (value[0] === '"') {
|
||||
return value.substring(1, value.length - 1).replace('""', '"');
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
quoteIdentifier(value) {
|
||||
return '"' + value.replace('"', '""') + '"';
|
||||
}
|
||||
|
Reference in New Issue
Block a user