diff options
author | Jiří Janoušek <janousek.jiri@gmail.com> | 2019-01-05 17:46:42 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-01-10 21:56:18 +0100 |
commit | 27dea2a4453fbda06dfece7e159578f0fb9c2ff9 (patch) | |
tree | 3c8405e4a85d91493fc3b47845d64c6b6409cf8b /vapi | |
parent | 4912ae78212ef15328eb5854cb084eabed3c9e34 (diff) | |
download | vala-27dea2a4453fbda06dfece7e159578f0fb9c2ff9.tar.gz |
sqlite3: Correct return C type of Statement.column_text & Value.to_text
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/sqlite3.vapi | 3 |
1 files changed, 2 insertions, 1 deletions
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); |