-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql,sqlbase: fix the introspection for pre-2.1 BIT columns
Prior to CockroachDB 2.1, a BIT column was defined in column descriptors using column type INT and a non-canonical type width. When such a pre-2.1 column descriptor is loaded in a post-2.1 cockroachdb cluster (eg during an upgrade) the BIT column is "upgraded" to INT, which is value-wise compatible. However the introspection logic was not updated accordingly, and these pre-2.1 BIT columns would show up in `information_schema.columns` using mangled values. Release note (bug fix): The value of `information_schema.columns.character_maximum_column` is set to NULL for all integer types, for compatibility with PostgreSQL. Release note (bug fix): The values reported in `information_schema.columns` for integer columns created prior to CockroachDB v2.1 as BIT (back when CockroachDB mis-defined BIT as a special-case integer) are now fixed and consistent with other integer types.
- Loading branch information
Showing
9 changed files
with
213 additions
and
56 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
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.