mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-10 22:08:48 +01:00
postgres2 & memsql2
add escape (quote identifiers) for the dynamic sql so tables (collections) with special characters will work.
This commit is contained in:
1 parent
876dbe3d26
commit
51b4963e2e
7 files changed
+27
-27
No files matched your search
@@ -45,7 +45,7 @@ func (store *PostgresStore) initialize(user, password, hostname string, port int
|
||||
store.SupportBucketTable = false
|
||||
store.SqlGenerator = &SqlGenPostgres{
|
||||
CreateTableSqlTemplate: "",
|
||||
DropTableSqlTemplate: "drop table %s",
|
||||
DropTableSqlTemplate: `drop table "%s"`,
|
||||
}
|
||||
|
||||
sqlUrl := fmt.Sprintf(CONNECTION_URL_PATTERN, hostname, port, sslmode)
|
||||
|
||||
Reference in new issue
Block a user