Debug: Fix sql query generation for some tables

This commit is contained in:
José Rebelo
2026-06-02 23:24:46 +01:00
parent 087c7d75d5
commit e12f476cf1
@@ -147,7 +147,9 @@ class DatabaseTableDebugFragment : AbstractDebugFragment() {
cursor.use { cursor.use {
while (it.moveToNext()) { while (it.moveToNext()) {
if (it.getColumnIndex("sql") >= 0) { if (it.getColumnIndex("sql") >= 0) {
sqlQueries.add(formatSql(it.getString(it.getColumnIndexOrThrow("sql")).trim()) + ";") it.getString(it.getColumnIndexOrThrow("sql"))?.let { rawSql ->
sqlQueries.add(formatSql(rawSql.trim()) + ";")
}
} }
} }
} }