mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 08:30:06 +02:00
Correct substitution of long long values into SQL queries...
... Reviewed all sqlite3_snprintf and only these had problems
This commit is contained in:
parent
22e90cbf72
commit
3d0e86a8f8
@ -473,7 +473,7 @@ size_t SqliteSampleBlock::GetBlob(void *dest,
|
||||
char sql[256];
|
||||
sqlite3_snprintf(sizeof(sql),
|
||||
sql,
|
||||
"SELECT %s FROM sampleblocks WHERE blockid = %d;",
|
||||
"SELECT %s FROM sampleblocks WHERE blockid = %lld;",
|
||||
srccolumn,
|
||||
mBlockID);
|
||||
|
||||
@ -555,7 +555,7 @@ bool SqliteSampleBlock::Load(SampleBlockID sbid)
|
||||
sql,
|
||||
"SELECT sampleformat, summin, summax, sumrms,"
|
||||
" length('summary256'), length('summary64k'), length('samples')"
|
||||
" FROM sampleblocks WHERE blockid = %d;",
|
||||
" FROM sampleblocks WHERE blockid = %lld;",
|
||||
sbid);
|
||||
|
||||
sqlite3_stmt *stmt = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user