eyalroz / tpch-dbgen

Data & query generation utilities for the TPC-H benchmark (unified repository)

Home Page:http://www.tpc.org/tpch/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiler warns about empty format string when SET_DBASE is empty

eyalroz opened this issue · comments

SET_DBASE is the format string for the command to set the active database, used in qgen. Now, for some DBMSes, no such command exists, because a connection is associated with a single database from the get-go (e.g. MonetDB, VectorWise). The thing is, in qgen.c we have the line:

fprintf(ofp, SET_DBASE, db_name);

and this triggers a compiler warning when SET_DBASE is empty - empty format string with more than 0 extra arguments to fprintf(). Let's avoid this warning.