Software /
code /
prosody
Changeset
13159:706f7d1affc2
mod_storage_sql: Fix column name in index check for PostgreSQL
Forgot to change the column name in 9a7523ea45cb
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 17 Jun 2023 13:37:33 +0200 |
parents | 13158:cf2a907ac130 |
children | 13160:4ee9a912ceea |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Sat Jun 17 13:36:42 2023 +0200 +++ b/plugins/mod_storage_sql.lua Sat Jun 17 13:37:33 2023 +0200 @@ -854,7 +854,7 @@ indices[row[1]] = true; end elseif params.driver == "PostgreSQL" then - for row in engine:select [[SELECT "relname" FROM "pg_indexes" WHERE "tablename"='prosody' AND "indexname"='prosody_index';]] do + for row in engine:select [[SELECT "indexname" FROM "pg_indexes" WHERE "tablename"='prosody' AND "indexname"='prosody_index';]] do indices[row[1]] = true; end end