From: Jiří Janoušek Date: Sat, 5 Jan 2019 16:46:42 +0000 (+0100) Subject: sqlite3: Correct return C type of Statement.column_text & Value.to_text X-Git-Tag: 0.43.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fmerge-requests%2F38%2Fhead;p=thirdparty%2Fvala.git sqlite3: Correct return C type of Statement.column_text & Value.to_text --- 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);