-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete support for C++ integer types #954
Merged
Merged
Changes from 3 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
7644240
Update core code for complete integer type support
zann1x 53f6aba
Update MySQL backend for complete integer type support
zann1x f27f144
Update SQLite3 backend for complete integer type support
zann1x dd45b6d
Update PostgreSQL backend for complete integer type support
zann1x 8fc34db
Update Oracle backend for complete integer type support
zann1x 9d0d7c4
Update DB2 backend for complete integer type support
zann1x e0d0038
Update Firebird backend for complete integer type support
zann1x 6aa6aa7
Update ODBC backend for complete integer type support
zann1x ca28449
Update soci-simple for complete integer type support
zann1x 9e39f97
Update shared unit tests for complete integer type support
zann1x 8544cab
Update unit tests of MySQL backend for complete integer type support
zann1x 44a4365
Update unit tests of SQLite3 backend for complete integer type support
zann1x 236966f
Update unit tests of PostgreSQL backend for complete integer type
zann1x 0a8f450
Update unit tests of Oracle backend for complete integer type support
zann1x 455a580
Update unit tests of DB2 backend for complete integer type support
zann1x b56224e
Update unit test of Firebird backend for complete integer type support
zann1x 43ab82f
Update unit tests of ODBC backend for complete integer type support
zann1x 71d9b87
Add *_int and *_long_long methods back to the soci-simple API
zann1x d4414a3
Update docs for complete integer type support
zann1x 8dba000
Correct ODBC error message for unsigned types
zann1x 3d16170
Replace stdint.h with cstdint
zann1x ff90687
Add back removed dt_* and x_* types
zann1x 367c0c0
Revert unnecessary changes in unit tests
zann1x 4e80322
Fix header include order
zann1x d95c716
Remove abbreviation in user-facing ODBC error message
zann1x a824ac8
Fix incorrect extraction of Postgres bool type
zann1x ede341c
Remove unnecessary type casts
zann1x 60da2f0
Merge separate integer unit tests into one
zann1x 4c36213
Remove unsigned type support checks in unit tests
zann1x 88e2cb4
Fix uint64 vector unit tests
zann1x ea4ce9d
Simplify platform-specific data type defines
zann1x e8e4fc9
Fix MSSQL ODBC unit tests
zann1x 4de379f
Fix Postgres unit test
zann1x 1c3e069
Fix MySQL ODBC unit tests
zann1x ff7e29c
Handle potential overflow in mysql into-conversion
zann1x 826fa77
Expose new db_type for dynamic type mapping
zann1x 037a332
Add db_type description to docs
zann1x 06b68c2
Forward create_column_type() to db_type overload
zann1x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to avoid repeating the specializations themselves and just define something like
SOCI_LONG_T
as eitherint32_t
orint64_t
depending on the platform once infixed-size-ints.h
and then write(and the same for unsigned, of course).
This would be more maintainable and facilitate any further changes and we will need change this because:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite like the idea of defining a "new" type for this. Instead of it, I added more descriptive defines. I think that these can also handle the 32-bit case now.
Let me know what you think about this.