gda_command_set_connection

Name

gda_command_set_connection —

Synopsis

gint gda_command_set_connection (Gda_Command* cmd, Gda_Connection* cnc);

Arguments

cmd

The command object

cnc

The connection object

Description

Associates a connection with a command. All functions with this command will use the connection to talk to the data source. If the command is already associated with a connection, this association is destroyed.

Returns

-1 on error, 0 on success