c27f351a54d03b9822df6979d90ee71d3915dc53
markd
  Sun Sep 5 11:42:21 2010 -0700
export existing sqlEscape function in .h file
diff --git src/hg/inc/jksql.h src/hg/inc/jksql.h
index d55aa68..2a999c1 100644
--- src/hg/inc/jksql.h
+++ src/hg/inc/jksql.h
@@ -199,6 +199,15 @@
  *     old info, only applies with mysql_store_result not mysql_use_result)
  * Otherwise returns a structure that you can do sqlRow() on. */
 
+char *sqlEscapeString(const char* from);
+/* Prepares string for inclusion in a SQL statement . Remember to free
+ * returned string.  Returned string contains strlen(length)*2+1 as many bytes
+ * as orig because in worst case every character has to be escaped.*/
+
+char *sqlEscapeString2(char *to, const char* from);
+/* Prepares a string for inclusion in a sql statement.  Output string
+ * must be 2*strlen(from)+1 */
+
 char *sqlEscapeTabFileString2(char *to, const char *from);
 /* Escape a string for including in a tab seperated file. Output string
  * must be 2*strlen(from)+1 */