From 85bfb584076d0c71053d9ef6dae729615f9ba514 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Janou=C5=A1ek?= Date: Sat, 5 Jan 2019 17:46:42 +0100 Subject: [PATCH] sqlite3: Correct return C type of Statement.column_text & Value.to_text --- vapi/sqlite3.vapi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vapi/sqlite3.vapi b/vapi/sqlite3.vapi index d6620dbbb..07a16102f 100644 --- a/vapi/sqlite3.vapi +++ b/vapi/sqlite3.vapi @@ -149,7 +149,7 @@ namespace Sqlite { public int to_int (); [CCode (cname = "sqlite3_value_int64")] public int64 to_int64 (); - [CCode (cname = "sqlite3_value_text")] + [CCode (cname = "sqlite3_value_text", type = "const unsigned char*")] public unowned string to_text (); [CCode (cname = "sqlite3_value_type")] public int to_type (); @@ -388,6 +388,7 @@ namespace Sqlite { public double column_double (int col); public int column_int (int col); public int64 column_int64 (int col); + [CCode (type = "const unsigned char*")] public unowned string? column_text (int col); public int column_type (int col); public unowned Value column_value (int col); -- 2.47.2