5b8c4168d4807c729fc8b1f199d9eb03c9411069 galt Thu Mar 3 18:40:54 2016 -0800 Replacing simple literal NOSQLINJ in string with the #define NOSQLINJ. This is slightly better because the compiler can catch a mis-spelling of the NOSQLINJ keyword. This was suggested by Angie. diff --git src/hg/lib/hgRelate.c src/hg/lib/hgRelate.c index 813cda6..2314cef 100644 --- src/hg/lib/hgRelate.c +++ src/hg/lib/hgRelate.c @@ -15,31 +15,31 @@ #include "hdb.h" static char extFileCreate[] = /* This keeps track of external files and directories. */ "create table %s (" "id int unsigned not null primary key," /* Unique ID across all tables. */ "name varchar(64) not null," /* Symbolic name of file. */ "path varchar(255) not null," /* Full path. Ends in '/' if a dir. */ "size bigint unsigned not null," /* Size of file (checked) */ /* Extra indices. */ "index (name))"; static char historyCreate[] = /* This contains a row for each update made to database. */ -"NOSQLINJ create table history (" +NOSQLINJ "create table history (" "ix int not null auto_increment primary key," /* Update number. */ "startId int unsigned not null," /* Start this session's ids. */ "endId int unsigned not null," /* First id for next session. */ "who varchar(255) not null," /* User who updated. */ "what varchar(255) not null," /* What they did. */ "modTime timestamp not null," /* Modification time. */ "errata varchar(255) )"; /* Deleted data */ HGID hgGetMaxId(struct sqlConnection *conn, char *tableName) /* get the maximum value of the id column in a table or zero if empry */ { /* we get a row with NULL if the table is empty */ char query[128]; char **row = NULL; HGID maxId;