Comments (10)
I see the issue
Line 2449 auto len = ::strlen(row_value);
strlen
will stop at a null.
Still scratching my head on how to get around this.
from sqlite_orm.
Hi. The only way I see is to give up using sqlite3_exec
in get_all
but use prepared statement. But let me think a little bit more - probably there is a way to solve it with easier
from sqlite_orm.
http://sqlite.1065341.n5.nabble.com/Blob-in-the-callback-of-sqlite3-exec-td8604.html
from sqlite_orm.
Please use select
now for a few days - I'll change get_all
implementation so it will use prepared statement. I think this is a best solution cause prepared statement gives more functionality
from sqlite_orm.
Aah, thanks
select
is also using the sql_exec callback
method, so I'm using the iterate
and manually checking the for the conditions for now
from sqlite_orm.
@Rishi321 thanks for your patience
from sqlite_orm.
Thank you for your quick redressal :)
from sqlite_orm.
@Rishi321 please check latest commits. I've refactored get_all
with statements and added tests based on your case. I'm gonna refactor select
and close the issue. Is it ok for you?
from sqlite_orm.
Works. Perfect. ๐
from sqlite_orm.
I didn't finish refactoring within select
function so I leave the issue opened until it is done
from sqlite_orm.
Related Issues (20)
- ๆๆ ทๅฎไน make_storage ่ฟๅๆจกๆฟ็ฑปๅ ็ c++็ฑปๆๅๅ้ HOT 1
- "no such table" error on existing database HOT 1
- Delete a foreign key HOT 3
- sqlite-orm fails to compile under uwp HOT 1
- C:\src\sqlite_orm\tests\schema\virtual_table.cpp(6): exception: no such module: FTS5: SQL logic error HOT 2
- I need to store a vector of vector<std::string> as a field in a persistent class, how can I do this? HOT 8
- add column sync_schema will recreate table HOT 12
- compile error with gcc 5.3.1 HOT 6
- Windows linker error SQLite3 HOT 3
- Warning on CMake >= 3.27 because of support for CMake >= 2.8.12
- Cannot Build my project HOT 2
- `SQLITE_DQS` Compile Option HOT 5
- Failed to compile origin/dev branch using GCC 8.3 HOT 2
- Do not understand select statement generation HOT 3
- Support for returning objects inside columns HOT 6
- Corrupted Databases HOT 8
- API has changed a bit : what is c<Type>? HOT 1
- why is this WITH not recursive? HOT 2
- FTS5 Options: Unindexed columns, prefix indexes, tokenizers & content HOT 17
- sync_schema_simulate when used with triggers HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlite_orm.