From 8c027e1a73494afc7a5ef962e5363c15981be08d Mon Sep 17 00:00:00 2001 From: Alex Kasko Date: Wed, 25 Mar 2026 23:52:43 +0000 Subject: [PATCH] Fix schema error message This PR fixes the schema error message that could cause the following double error: > INTERNAL Error: > Primary exception: SQLite databases only have a single schema - "%s" > Secondary exception in ExceptionFormatValue: {"exception_type":"Invalid Input","exception_message":"Invalid type specifier \"s\" for formatting a value of type int"} > This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic. > For more information, see https://duckdb.org/docs/stable/dev/internal_errors Ref: duckdb/duckdb#21378 --- src/storage/sqlite_catalog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/sqlite_catalog.cpp b/src/storage/sqlite_catalog.cpp index a228510..b01a247 100644 --- a/src/storage/sqlite_catalog.cpp +++ b/src/storage/sqlite_catalog.cpp @@ -41,7 +41,7 @@ optional_ptr SQLiteCatalog::LookupSchema(CatalogTransaction if (if_not_found == OnEntryNotFound::RETURN_NULL) { return nullptr; } - throw BinderException("SQLite databases only have a single schema - \"%s\"", DEFAULT_SCHEMA); + throw BinderException("SQLite databases only have a single schema - \"%s\"", std::string(DEFAULT_SCHEMA)); } bool SQLiteCatalog::InMemory() {