analyze.c always prints 32-bit variables as 64-bit here:

http://www.sqlite.org/src/artifact/d322972af09e3f8debb45f420dfe3ded142b108b?ln=746

http://www.sqlite.org/src/artifact/d322972af09e3f8debb45f420dfe3ded142b108b?ln=792

This can cause wrong sqlite_statX tables which I have experienced compiling for 32-bit.

With this change, tests pass again:

    #if sizeof(p->nRow) == sizeof(long long)
    sqlite3_snprintf(24, zRet, "%lld", p->nRow);
    #elseif sizeof(p->Row) = sizeof(long)
    sqlite3_snprintf(24, zRet, "%ld", p->nRow);
    #else
    sqlite3_snprintf(24, zRet, "%d", p->nRow);
    #endif

Ralf
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to