From bb0e9fd62416d08e888bde3bd22919b8ec44f812 Mon Sep 17 00:00:00 2001 From: Spxg Date: Sun, 18 May 2025 01:00:21 +0800 Subject: [PATCH] Use uppercase NULL --- src/lib.rs | 6 +++--- src/worker/sqlitend.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index addd75c..fd74bc5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -158,11 +158,11 @@ pub struct SQLiteStatementValues { pub enum SQLitendError { #[error("An error occurred while converting a string to a CString")] ToCStr, - #[error("An error occurred while opening the DB: {0:#?}")] + #[error("An error occurred while opening the DB: {0:?}")] OpenDb(InnerError), - #[error("An error occurred while preparing stmt: {0:#?}")] + #[error("An error occurred while preparing stmt: {0:?}")] Prepare(InnerError), - #[error("An error occurred while stepping to the next line: {0:#?}")] + #[error("An error occurred while stepping to the next line: {0:?}")] Step(InnerError), #[error("An error occurred while getting column name: {0}")] GetColumnName(String), diff --git a/src/worker/sqlitend.rs b/src/worker/sqlitend.rs index 8677535..faf415f 100644 --- a/src/worker/sqlitend.rs +++ b/src/worker/sqlitend.rs @@ -214,7 +214,7 @@ impl SQLitePreparedStatement { // https://www.sqlite.org/c3ref/column_blob.html let value = unsafe { match column_type { - SQLITE_NULL => "Null".to_string(), + SQLITE_NULL => "NULL".to_string(), SQLITE_INTEGER => { let number = sqlite3_column_int64(self.stmt, col_ndx); number.to_string()