Revision 66e986b22a64490f33a93ae54247dca8880c8d0d authored by Wouter Verkerke on 19 March 2004, 06:25:33 UTC, committed by Wouter Verkerke on 19 March 2004, 06:25:33 UTC
o RooAbsArg - Remove friend declararion of class that was never committed git-svn-id: http://root.cern.ch/svn/root/trunk@8437 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent d8ec4e1
sqlcreatedb.C
void sqlcreatedb()
{
// Create a runcatalog table in a MySQL test database.
// read in runcatalog table definition
FILE *fp = fopen("runcatalog.sql", "r");
const char sql[4096];
fread(sql, 1, 4096, fp);
fclose(fp);
// open connection to MySQL server on localhost
TSQLServer *db = TSQLServer::Connect("mysql://localhost/test", "nobody", "");
TSQLResult *res;
// create new table (delete old one first if exists)
res = db->Query("DROP TABLE runcatalog");
delete res;
res = db->Query(sql);
delete res;
delete db;
}
Computing file changes ...