[geany/geany-plugins] 1c1947: Tableconvert: Don't add () around selection when creating SQL prepared code as most likely this is incorrect

frlan git-noreply at xxxxx
Mon Jun 11 13:09:55 UTC 2012


Branch:      refs/heads/master
Author:      frlan <frank at frank.uvena.de>
Committer:   frlan <frank at frank.uvena.de>
Date:        Mon, 11 Jun 2012 13:09:55
Commit:      1c19477f3a083421424f9425ead937e03233c4ac
             https://github.com/geany/geany-plugins/commit/1c19477f3a083421424f9425ead937e03233c4ac

Log Message:
-----------
Tableconvert: Don't add () around selection when creating SQL prepared code as most likely this is incorrect


Modified Paths:
--------------
    tableconvert/src/tableconvert.c

Modified: tableconvert/src/tableconvert.c
6 files changed, 2 insertions(+), 4 deletions(-)
===================================================================
@@ -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
@@ -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++)
@@ -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;
 }
 


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Plugins-Commits mailing list