Comparison

plugins/mod_storage_sql.lua @ 13158:cf2a907ac130

mod_storage_sql: Adjust indentation to align with surrounding code
author Kim Alvefur <zash@zash.se>
date Sat, 17 Jun 2023 13:36:42 +0200
parent 13157:841276d0cc25
child 13159:706f7d1affc2
comparison
equal deleted inserted replaced
13157:841276d0cc25 13158:cf2a907ac130
308 if archive_item_limit then 308 if archive_item_limit then
309 if not item_count then 309 if not item_count then
310 item_count_cache_miss(); 310 item_count_cache_miss();
311 local ok, ret = engine:transaction(function() 311 local ok, ret = engine:transaction(function()
312 local count_sql = [[ 312 local count_sql = [[
313 SELECT COUNT(*) FROM "prosodyarchive" 313 SELECT COUNT(*) FROM "prosodyarchive"
314 WHERE "host"=? AND "user"=? AND "store"=?; 314 WHERE "host"=? AND "user"=? AND "store"=?;
315 ]]; 315 ]];
316 local result = engine:select(count_sql, host, user, store); 316 local result = engine:select(count_sql, host, user, store);
317 if result then 317 if result then
318 for row in result do 318 for row in result do
319 item_count = row[1]; 319 item_count = row[1];
320 end 320 end