[vala/0.12] libpq: Fix several function bindings having parameters with array type
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.12] libpq: Fix several function bindings having parameters with array type
- Date: Sun, 29 May 2011 11:19:12 +0000 (UTC)
commit 92752416767c9a6158fbafd59dfca8783d4875a6
Author: Luca Bruno <lucabru src gnome org>
Date: Tue Apr 19 22:14:27 2011 +0200
libpq: Fix several function bindings having parameters with array type
Fixes bug 644308.
vapi/libpq.vapi | 28 ++++++++++++----------------
1 files changed, 12 insertions(+), 16 deletions(-)
---
diff --git a/vapi/libpq.vapi b/vapi/libpq.vapi
index dbdc96f..e47ca07 100644
--- a/vapi/libpq.vapi
+++ b/vapi/libpq.vapi
@@ -273,30 +273,26 @@ namespace Postgres {
[CCode (cname = "PQexec")]
public Result exec (string query);
- [CCode (cname = "PQexecParams", array_length = false, array_null_terminated = false)]
- public Result exec_params (string command, int nParams, Oid[] paramTypes, string[] paramValues, int[] paramLengths,
- int[] paramFormats, int resultFormat);
+ [CCode (cname = "PQexecParams")]
+ public Result exec_params (string command, int n_params, [CCode (array_length = false)] Oid[]? param_types, [CCode (array_length = false)] string[]? param_values, [CCode (array_length = false)] int[]? param_lengths, [CCode (array_length = false)] int[]? param_formats, int result_format);
- [CCode (cname = "PQprepare", array_length = false, array_null_terminated = false)]
- public Result prepare (string stmtName, string query, int nParams, Oid[] paramTypes);
+ [CCode (cname = "PQprepare")]
+ public Result prepare (string stmt_name, string query, [CCode (array_length_pos = 2.9)] Oid[]? param_types);
- [CCode (cname = "PQexecPrepared", array_length = false, array_null_terminated = false)]
- public Result exec_prepared (string stmtName, int nParams, string[] paramValues, int[] paramLengths,
- int[] paramFormats, int resultFormat);
+ [CCode (cname = "PQexecPrepared")]
+ public Result exec_prepared (string stmt_name, int n_params, [CCode (array_length = false)] string[]? param_values, [CCode (array_length = false)] int[]? param_lengths, [CCode (array_length = false)] int[]? param_formats, int result_format);
[CCode (cname = "PQsendQuery")]
public int send_query (string query);
- [CCode (cname = "PQsendQueryParams", array_length = false, array_null_terminated = false)]
- public int send_query_params (string command, int nParams, Oid[] paramTypes, string[] paramValues,
- int[] paramLengths, int[] paramFormats, int resultFormat);
+ [CCode (cname = "PQsendQueryParams")]
+ public int send_query_params (string command, int n_params, [CCode (array_length = false)] Oid[]? param_types, [CCode (array_length = false)] string[]? param_values, [CCode (array_length = false)] int[]? param_lengths, [CCode (array_length = false)] int[]? param_formats, int result_format);
- [CCode (cname = "PQsendPrepare", array_length = false, array_null_terminated = false)]
- public int send_prepare (string stmtName, string query, int nParams, Oid[] paramTypes);
+ [CCode (cname = "PQsendPrepare")]
+ public int send_prepare (string stmt_name, string query, [CCode (array_length_pos = 2.9)] Oid[]? param_types);
- [CCode (cname = "PQsendQueryPrepared", array_length = false, array_null_terminated = false)]
- public int send_query_prepared (string stmtName, int nParams, string[] paramValues, int[] paramLengths,
- int[] paramFormats, int resultFormat);
+ [CCode (cname = "PQsendQueryPrepared")]
+ public int send_query_prepared (string stmt_name, int n_params, [CCode (array_length = false)] string[]? param_values, [CCode (array_length = false)] int[]? param_lengths, [CCode (array_length = false)] int[]? param_formats, int resultFormat);
[CCode (cname = "PQgetResult")]
public Result get_result ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]