Project

General

Profile

Feature #8375

Assert SQL statements are correct

Added by Tobias Ellinghaus over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Low
Category:
General
Target version:
Start date:
Due date:
% Done:

100%

Affected Version:
System:
bitness:
64-bit
hardware architecture:
amd64/x86

Description

We had a few bugs because of broken SQL queries. In order to find these we should encapsulate all the sqlite-function calls in a macro which performs checking of the return value and crashes (*) dt if something goes wrong. That might be annoying, but it enables us to find bugs fast.

(*) or print a warning.

History

#1 Updated by Tobias Ellinghaus over 8 years ago

  • Status changed from New to Fixed

Fixed in commit 549e7cc0e175f83e8620281e44b1a14584a2d8cf. Currently crashes dt when compiled in debug mode.

Also available in: Atom PDF