CC: | matt [...] sergeant.org |
Subject: | SUM returns truncated values with CHAR columns |
SUM returns truncated values with CHAR columns.
Exemple:
create table test (v varchar(50));
insert into test values ('0.10');
insert into test values ('0.35');
With sqlite3 "select sum(v) from test" return 0.45.
Same with DBD::SQLite return 0.