mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
Merge branch 'filer-postgres-flat' into filer-postgres-flat-integration
This commit is contained in:
commit
dbd04c7f96
1 file changed
+1
-1
@@ -78,13 +78,13 @@ func (gen *SqlGenPostgres) GetSqlDeleteFolderChildren(tableName string, dir stri
|
||||
return fmt.Sprintf(`DELETE FROM "%s" WHERE dirhash=$1 AND directory=$2`, tableIdent(tableName)), []interface{}{util.HashStringToLong(dir), dir}
|
||||
}
|
||||
|
||||
// nameExpr forces byte ordering on a locale-aware column via COLLATE "C".
|
||||
// tableIdent escapes a table name for the double quotes the statements put
|
||||
// around it.
|
||||
func tableIdent(tableName string) string {
|
||||
return strings.ReplaceAll(tableName, `"`, `""`)
|
||||
}
|
||||
|
||||
// nameExpr forces byte ordering on a locale-aware column via COLLATE "C".
|
||||
func (gen *SqlGenPostgres) nameExpr() string {
|
||||
if gen.ForceBinaryCollation {
|
||||
return `name COLLATE "C"`
|
||||
|
||||
Reference in new issue
Block a user