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
Blob type returned ? #59
Comments
I never implemented proper handling of the BLOB types because it was never necessary for my purposes. It looks like in this case the #include <iostream>
#include <string>
#include "nanodbc.h"
using namespace std;
using namespace nanodbc;
int main()
{
connection c("Driver=sqlite;Database=this_test.db;");
execute(c, "CREATE TABLE IF NOT EXISTS PIPES (Name TEXT);");
result r = execute(c, "SELECT CAST(name AS text) FROM sqlite_master WHERE type = 'table';");
r.next();
cout << r.get<string>(0) << endl;
}
/*
$ c++ -Wall -Werror -I/usr/local/include -L/usr/local/lib -lodbc nanodbc.cpp this_test.cpp
$ ./a.out # PIPES
*/ Let me know if that also works for you on Fedora Core. I ran the above test on an OS X machine. |
From @renzo38 on December 9, 2014 7:58 Thanks for your answer, I try it on my FC20 but it crashes like my sample
Regards. ###Stack trace under gdb
|
From @renzo38 on March 17, 2015 12:50 The unixODBC and sqlite RPM packages have been updated on Fedora Core 21 as follow:
The CAST now works on this platform, this issue can be closed. Thx |
Much thanks for the update! |
From @renzo38 on December 8, 2014 11:48
Hello,
First of all, thanks for this really great wrapper. I am encountering a problem while using nanodbc on the following platform:
I open a minimalist sqlite db containing only one table created as follow:
CREATE TABLE "PIPES" ("Name" TEXT);
Then, trying to execute the request:
SELECT name FROM sqlite_master WHERE type='table';
leads to a runtime_error with "blob not implemented yet" as the error message. Is this a bug or not ?
Thanks.
Copied from original issue: lexicalunit/nanodbc#32
The text was updated successfully, but these errors were encountered: