[ROOT] TSQLResult::Query() Return Values

From: Stephen A. Fuqua (sfuqua@dell12.hep.utexas.edu)
Date: Fri Feb 16 2001 - 22:25:29 MET


Here's the basic situation: I want to upload data via SQL to a database,
and then check if the insert statement executed properly. Idealy, if my
database object is called "db", I would like to have db->Query("insert
...") return a value indicating success. Obviously, values are returned
if the query string contains a select statement. But what if its just a
command, not a question?

In summation: how do I tell if a query command executed properly?


Stephen A. Fuqua

sfuqua@hep.utexas.edu // High Energy Physics Lab
Research Assistant   // University of Texas at Austin
ph: 512.475.8673    // http://www.hep.utexas.edu/~sfuqua



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:10 MEST