mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-10 05:54:47 +08:00
postgres2 & memsql2
add escape (quote identifiers) for the dynamic sql so tables (collections) with special characters will work.
This commit is contained in:
@@ -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