Skip to content

Commit

Permalink
Tableconvert: Don't add () around selection when creating SQL prepare…
Browse files Browse the repository at this point in the history
…d code as most likely this is incorrect
  • Loading branch information
frlan committed Jun 11, 2012
1 parent 517cd10 commit 1c19477
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tableconvert/src/tableconvert.c
@@ -1,7 +1,7 @@
/*
* tableconvert.c
*
* Copyright 2011 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Copyright 2011-2012 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -154,7 +154,7 @@ static GString* convert_to_table_sql(gchar** rows)
g_return_val_if_fail(rows != NULL, NULL);

/* Adding start */
replacement_str = g_string_new("(\n");
replacement_str = g_string_new("");

/* Iteration onto rows and building up lines for replacement */
for (i = 0; rows[i] != NULL ; i++)
Expand Down Expand Up @@ -184,8 +184,6 @@ static GString* convert_to_table_sql(gchar** rows)

g_free(columns);
}
/* Adding the end of table */
g_string_append(replacement_str, ")\n");
return replacement_str;
}

Expand Down

0 comments on commit 1c19477

Please sign in to comment.