Kiel W. wrote:


size = sprintf( buf, "CREATE TABLE People( fname varchar(25), fname varchar(25) );" );
size = sprintf( buf, "INSERT INTO People VALUES( 'John', 'Fullman' );" );
size = sprintf( buf, "INSERT INTO People VALUES( 'Sally', 'Fullman' );" );
size = sprintf( buf, "INSERT INTO People VALUES( 'Mike', 'Smith' );" );

size = sprintf( buf, "SELECT * FROM People WHERE lname = '?'" );

unless you deleted the code between the sprintf lines, this isn't doing what you think it is.



--
Ted Unangst             www.coverity.com             Coverity, Inc.

Reply via email to