SQLite compatibility and related fixes
commite0da3e84e42c87e75569387c5528ce2dff29be33
authorJames Hogan <james@albanarts.com>
Wed, 9 Sep 2009 21:27:40 +0000 (9 22:27 +0100)
committerJames Hogan <james@albanarts.com>
Wed, 9 Sep 2009 21:27:40 +0000 (9 22:27 +0100)
tree5d61bf0a2366b6a4b388fd69f14f9e61ea7ee088
parentc376bf95033166c04224390f002630b051e133fe
SQLite compatibility and related fixes
Separated SQL script into .mysql and .sqlite scripts for specific databases
Fixed SQLite incompatibilities (at the expense of MySQL which can be fixed by switching on ANSI mode or waiting for fix)
Fixed some foolish use of functionality inside Q_ASSERT which gets compiled away (tut tut james)
Had to remove INSERT INTO x SET .. statements, as SQLite doesn't like them
Made wrapper function for SQL queries that can print debug information and will eventually display a dialog box with an error if there is a problem, offering a chance to try and fix the database
design/songdb.mysql [moved from design/songdb.sql with 51% similarity]
design/songdb.sqlite [new file with mode: 0644]
kworship/songdb/KwSongdb.cpp
kworship/songdb/KwSongdb.h
kworship/songdb/KwSongdbFilterNode.cpp
kworship/songdb/KwSongdbSong.cpp
kworship/songdb/KwSongdbSongBook.cpp
kworship/songdb/KwSongdbSongBookSong.cpp
kworship/songdb/KwSongdbTree.cpp
kworship/songdb/KwSongdbVersion.cpp