Skip to content

Commit

Permalink
Remove gda4 conditional. Refs midgardprojectgh-135
Browse files Browse the repository at this point in the history
  • Loading branch information
piotras committed Mar 7, 2012
1 parent 8f21d32 commit 5d2dbfb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/midgard_user.c
Expand Up @@ -685,18 +685,8 @@ __midgard_user_delete (MidgardUser *self)
g_debug ("%s", del_query->str); g_debug ("%s", del_query->str);


GError *error = NULL; GError *error = NULL;
GdaConnection *connection = mgd->priv->connection; GdaConnection *connection = mgd->priv->connection;

#ifdef HAVE_LIBGDA_4

gda_execute_non_select_command (connection, del_query->str, &error); gda_execute_non_select_command (connection, del_query->str, &error);

#else
GdaCommand *command = gda_command_new (del_query->str, GDA_COMMAND_TYPE_SQL, GDA_COMMAND_OPTION_STOP_ON_ERRORS);
gda_connection_execute_non_select_command (connection, command, NULL, &error);
gda_command_free (command);

#endif /* HAVE_LIBGDA_4 */


g_string_free (del_query, TRUE); g_string_free (del_query, TRUE);


Expand Down

0 comments on commit 5d2dbfb

Please sign in to comment.