]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
sqlite3: Correct return C type of Statement.column_text & Value.to_text 85bfb584076d0c71053d9ef6dae729615f9ba514 38/head
authorJiří Janoušek <janousek.jiri@gmail.com>
Sat, 5 Jan 2019 16:46:42 +0000 (17:46 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Jan 2019 21:59:45 +0000 (21:59 +0000)
vapi/sqlite3.vapi

index d6620dbbbd8dae2f731e33ed813697ca2563b917..07a16102fdf9a3a4dcbc5d94dcdf851f33a49bc8 100644 (file)
@@ -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);