fix constraint removal

This commit is contained in:
Sven Klemm
2018-07-06 09:28:34 +02:00
parent d8c7756489
commit 85ab1cfa8f
2 changed files with 4 additions and 1 deletions

View File

@ -31,8 +31,9 @@ export default class PostgresQuery {
this.updateProjection();
}
// remove identifier quoting from identifier to use in metadata queries
unquoteIdentifier(value) {
if (value[0] === '"') {
if (value[0] === '"' && value[value.length - 1] === '"') {
return value.substring(1, value.length - 1).replace('""', '"');
} else {
return value;