Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Quoting floating point values on PostgreSQL provider.
This quotes floating point values on the PostgreSQL data provider, which allows such values to be used either as stand-alone primary keys or as components of composite primary keys on underlying tables. The PostgreSQL session parameter extra_float_digits is explicitly set to 3 (the default on PostgreSQL 11 and older; in PostgreSQL 12 this defaults to 1), to keep compatibility with all database versions and to avoid round-trip errors. In this PR, NUMERIC/DECIMAL values are no longer cast to QVariant::Double in order to avoid loss of precision.
- Loading branch information
Showing
5 changed files
with
295 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters