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

sqlite3 demo get wrong row size #197

Open
suihanhbr opened this issue Sep 22, 2022 · 1 comment
Open

sqlite3 demo get wrong row size #197

suihanhbr opened this issue Sep 22, 2022 · 1 comment

Comments

@suihanhbr
Copy link

Note: If you use the fuzzy expressions such as 'can't use/no effect/problem/error', but don't give any relevant auxiliary information according to the template below, this issue will be not replied.

Describe the bug

A clear and concise description of what the bug is.
run

xmake f -m debug -p macosx --database=y --sqlite3=y
xmake
xmake run demo database_sql ./test.db

get wrong row size as follow:

[demo]: ==============================================================================
[demo]: row: size: 18446744073709551615
[demo]: [row: 0, col: size: 9]: [id:1] [fval:3.000000] [name:name1] [data:data1] [tdata:ldata1] [ldata1:tdata1] [ldata2:null] [number:52642] [snumber:2642] 
[demo]: [row: 1, col: size: 9]: [id:2] [fval:3.099999] [name:name2] [data:data2] [tdata:ldata2] [ldata1:tdata2] [ldata2:null] [number:57127] [snumber:7127] 
[demo]: [row: 2, col: size: 9]: [id:3] [fval:3.140000] [name:name3] [data:data3] [tdata:ldata3] [ldata1:tdata3] [ldata2:null] [number:9000] [snumber:9000] 
[demo]: [row: 3, col: size: 9]: [id:4] [fval:3.141499] [name:name4] [data:data4] [tdata:ldata4] [ldata1:tdata4] [ldata2:null] [number:29000] [snumber:9000] 
[demo]: [row: 4, col: size: 9]: [id:5] [fval:-3.099999] [name:name5] [data:data5] [tdata:ldata5] [ldata1:tdata5] [ldata2:null] [number:350000] [snumber:5000] 
[demo]: [row: 5, col: size: 9]: [id:6] [fval:3.453999] [name:name6] [data:data6] [tdata:ldata6] [ldata1:tdata6] [ldata2:null] [number:21000] [snumber:1000] 
[demo]: [row: 6, col: size: 9]: [id:7] [fval:100.097999] [name:name7] [data:data7] [tdata:ldata7] [ldata1:tdata7] [ldata2:null] [number:21600] [snumber:1600] 
[tbox]: [database]: exit: ..
[tbox]: [database]: exit: ok

Related Environment

macOS Monterey 12.3.1
Xcode 13.4.1
tbox 1.6.8
xmake 2.6.9

@waruqi
Copy link
Member

waruqi commented Sep 22, 2022

it's not bug, I cannot get row count for sqlite_step mode.

sqlite->result.count = (tb_size_t)-1;

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