Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong exception thrown by Database constructor #73

Closed
Sildra opened this issue Nov 10, 2015 · 2 comments
Closed

Wrong exception thrown by Database constructor #73

Sildra opened this issue Nov 10, 2015 · 2 comments

Comments

@Sildra
Copy link

Sildra commented Nov 10, 2015

The database constructor does not return the good error message with the following code :

SQLite::Database* db = new SQLite::Database(filename, SQLITE_OPEN_CREATE);

In my case it returned an out of memory message.

Can be fixed by using sqlite3_errstr() instead of sqlite3_errmsg().

@SRombauts
Copy link
Owner

Hum, problem is that sqlite3_errstr() is availlable only on recent Linux distributions, not in the one used for continuous integration testing ; will need some #ifdef

@SRombauts
Copy link
Owner

Thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants