Skip to content

Commit d8f9814

Browse files
committed
Fix import_from_buffer with FTS5
1 parent ea0b0d7 commit d8f9814

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

demo/icon.png.import

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.cte
1818
compress/mode=0
1919
compress/high_quality=false
2020
compress/lossy_quality=0.7
21+
compress/uastc_level=0
22+
compress/rdo_quality_loss=0.0
2123
compress/hdr_compression=1
2224
compress/normal_map=0
2325
compress/channel_pack=0
2426
mipmaps/generate=false
2527
mipmaps/limit=-1
2628
roughness/mode=0
2729
roughness/src_normal=""
30+
process/channel_remap/red=0
31+
process/channel_remap/green=1
32+
process/channel_remap/blue=2
33+
process/channel_remap/alpha=3
2834
process/fix_alpha_border=true
2935
process/premult_alpha=false
3036
process/normal_map_invert_y=false

src/gdsqlite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ bool SQLite::import_from_buffer(PackedByteArray json_buffer) {
905905

906906
/* Find all tables that are present in this database */
907907
/* We don't care about indexes or triggers here since they get dropped automatically when their table is dropped */
908-
query(String("SELECT name FROM sqlite_master WHERE type = 'table';"));
908+
query(String("SELECT name,type FROM sqlite_master WHERE type = 'table';"));
909909
TypedArray<Dictionary> old_table_array = query_result.duplicate(true);
910910
#ifdef SQLITE_ENABLE_FTS5
911911
/* FTS5 creates a bunch of shadow tables that cannot be dropped manually! */

0 commit comments

Comments
 (0)