src/hg/hgTables/hgTables.c 1.182
1.182 2009/04/11 00:02:13 tdreszer
Added isSqlIntType so that integer fileds can be validated as such
Index: src/hg/hgTables/hgTables.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/hgTables.c,v
retrieving revision 1.181
retrieving revision 1.182
diff -b -B -U 4 -r1.181 -r1.182
--- src/hg/hgTables/hgTables.c 10 Apr 2009 20:04:29 -0000 1.181
+++ src/hg/hgTables/hgTables.c 11 Apr 2009 00:02:13 -0000 1.182
@@ -671,8 +671,14 @@
{
return strstr(type, "int") || strstr(type, "float") || strstr(type, "double");
}
+boolean isSqlIntType(char *type)
+/* Return TRUE if it is an integer SQL type. */
+{
+return (strstr(type, "int") != NULL);
+}
+
struct sqlFieldType *sqlFieldTypeNew(char *name, char *type)
/* Create a new sqlFieldType */
{
struct sqlFieldType *ft;