diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-02-14 09:00:39 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-14 09:00:39 -0800 |
| commit | 4f4c52a6c7071bb4cdf3e5bc77096878bffa119c (patch) | |
| tree | c557e1515886185c5dbb0bffb9b7bec43a565174 /weed/filer/postgres2/postgres2_store.go | |
| parent | 876dbe3d26138c26e0e9869874c0d0b18aec7d1e (diff) | |
| parent | 51b4963e2eaa6caff8ed4702453b9af371cf6914 (diff) | |
| download | seaweedfs-4f4c52a6c7071bb4cdf3e5bc77096878bffa119c.tar.xz seaweedfs-4f4c52a6c7071bb4cdf3e5bc77096878bffa119c.zip | |
Merge pull request #1804 from LazyDBA247-Anyvision/master
Diffstat (limited to 'weed/filer/postgres2/postgres2_store.go')
| -rw-r--r-- | weed/filer/postgres2/postgres2_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer/postgres2/postgres2_store.go b/weed/filer/postgres2/postgres2_store.go index 82552376f..94c760401 100644 --- a/weed/filer/postgres2/postgres2_store.go +++ b/weed/filer/postgres2/postgres2_store.go @@ -48,7 +48,7 @@ func (store *PostgresStore2) initialize(createTable, user, password, hostname st store.SupportBucketTable = true store.SqlGenerator = &postgres.SqlGenPostgres{ CreateTableSqlTemplate: createTable, - DropTableSqlTemplate: "drop table %s", + DropTableSqlTemplate: `drop table "%s"`, } sqlUrl := fmt.Sprintf(CONNECTION_URL_PATTERN, hostname, port, sslmode) |
