![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Creating a domain on bit(N) doesn't seem to work as expected when casting to the domain type. CREATE DOMAIN bit4 AS bit(4); SELECT 7::bit(4), 7::bit4; bit | bit4 ------+------ 0111 | 1000 (1 row) |
#3
| |||
| |||
|
|
Kris Jurka <books (AT) ejurka (DOT) com> writes: Creating a domain on bit(N) doesn't seem to work as expected when casting to the domain type. What's going on here is that "7::bit4" is implemented as "7::bit::bit(4)", and since 7::bit is taken to mean 7::bit(1), the result follows. |
![]() |
| Thread Tools | |
| Display Modes | |
| |