ff7b25fe86888f2a76bcf6de7543c37a3254e9de
kent
  Tue Feb 17 15:05:04 2015 -0800
Moving sql where-clause sanity checking to library for reuse in CIRM routines.

diff --git src/hg/inc/sqlSanity.h src/hg/inc/sqlSanity.h
new file mode 100644
index 0000000..8e9ca12
--- /dev/null
+++ src/hg/inc/sqlSanity.h
@@ -0,0 +1,15 @@
+#ifndef SQLSANITY_H
+#define SQLSANITY_H
+
+void sqlSanityCheckWhere(char *rawQuery, struct dyString *clause);
+/* Let the user type in an expression that may contain
+ * - field names
+ * - parentheses
+ * - comparison/arithmetic/logical operators
+ * - numbers
+ * - patterns with wildcards
+ * Make sure they don't use any SQL reserved words, ;'s, etc.
+ * Let SQL handle the actual parsing of nested expressions etc. -
+ * this is just a token cop. */
+
+#endif /* SQLSANITY_H */