Allow not passing (allow-none) parameters
Submitted by Jonh Wendell
Link to original bug (#632461)
Description
This is the C annotation:
/**
* gda_connection_statement_execute_select:
* @cnc: a #GdaConnection object.
* @stmt: a #GdaStatement object.
* @params: (allow-none): a #GdaSet object (which can be obtained using gda_statement_get_parameters()), or %NULL
* @error: a place to store an error, or %NULL
*
....
*/
GdaDataModel *
gda_connection_statement_execute_select (GdaConnection *cnc, GdaStatement *stmt,
GdaSet *params, GError **error)
{
This is the javascript piece of code:
var dm = connection.statement_execute_select (stmt);
It fails on gjs, works fine on seed. Gjs requires I pass "null" as second argument:
var dm = connection.statement_execute_select (stmt, null);
Edited by Philip Chimento