db: sql debug mode was executing the SQL twice
commit0f27be677af91b4b9147399642814bdcd80e898b
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Nov 2018 10:03:30 +0000 (29 13:03 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Nov 2018 10:07:41 +0000 (29 13:07 +0300)
tree899fff74d904310657cee3825ecccb3d4d416018
parentea5e74baf1bdac9607cfc49d7ea893d1d17b8380
db: sql debug mode was executing the SQL twice

When you turned on debugging it was calling debug_sql() as well as
sql_exec() which executes the SQL twice.  That's harmless when you're
reading from the on-disk DB, but it becomes a problem when you're inserting
duplicate data into the in-mem DB.  Also it was really confusing to see the
duplicate data.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_db.c