lp:~posulliv/drizzle/bug337038-dec-trunc-should-error
- Get this branch:
- bzr branch lp:~posulliv/drizzle/bug337038-dec-trunc-should-error
Branch merges
- Jay Pipes (community): Approve
- Diff: None lines
Related bugs
Bug #337038: DECIMAL truncation is warning, not error | High | Fix Released |
Related blueprints
Branch information
Recent revisions
- 975. By Padraig O'Sullivan
-
Added extra comments to parts of test cases that were modified for this bug
fix based on Jay's review comments. Also split multi-value INSERT statements
into single INSERT statements. - 972. By Padraig O'Sullivan
-
Decided that we when we have an integer divided by an integer that returns a
truncated decimal result which will be stored in a temporary table, we will
error and store a default value in the temporary table when this occurs. The
other option was to have the query fail which would have required modifying
a lot of other things. I think this is a fair compromise as it is unlikely
someone is going to do something like divide (int) 1 / (int) 3 and expect to
get an accurate result. Most people would expect zero when dividing integers
like that. - 971. By Padraig O'Sullivan
-
Fix for bug337038. Now we error on data truncation with decimal values but
the warning is still present so that a user can issue 'show warnings' and
still see the truncation warning.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar RepositoryFormatKnitPack6 (bzr 1.9)
- Stacked on:
- lp:~drizzle-trunk/drizzle/development