Skip to content

Aggregating functions do not work #23

@mciezkowski

Description

@mciezkowski

Hello
Do the aggregation functions work for you?
I'm using esp32-idf-sqlite3 library on SenseCAP Indicator D1 and I have a problem with aggregate functions. Normal select works without problem but select with avg, sum does not work. The query is correct because I checked on the PC version of sqlite. The program does not report an error, just the database does not return anything.

I use callback function and it is a code that returns nothing:
if (!sqlite3_open(DB_PATH, &db11))
{
int rc = sqlite3_exec(db11, query_buf1,
callback_woda_plot, (void*)data1, &zErrMsg);
sqlite3_close(db11);
}

Have you got any idea what is wrong?
Greetings
Maciek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions