report(const char *format, ...) {
va_list args;
- if (benchFlags & FLG_SQL)
+ if (sqlMode)
return;
va_start(args, format);
if ( dbname == NULL || n<0 || (initMode == 0 && nClients<1) )
usage();
- if ( sqlMode ) {
+ if ( sqlMode )
quiet = 1;
- flags |= FLG_SQL;
- } else
+ else
rowMode = 0;
benchFlags = flags;
#define FLG_AND (0x00000008)
#define FLG_OR (0x00000010)
-#define FLG_SQL (0x00000020)
-
#endif
if ( flags & FLG_FUNC )
report("Flag 'func' is ignored by MySQL\n");
- if ( (flags & (FLG_GIN | FLG_GIST)) && (db->flags & FLG_SQL) == 0 )
+ if ( flags & (FLG_GIN | FLG_GIST) )
report("MySQL doesn't distinguish 'gin' and 'gist' flags\n");
if ( mysql_query(db->conn, "DROP TABLE IF EXISTS ftsbench CASCADE;")!= 0 ) {