Skip to content
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

Incomplete support for syntax for bit-string constants b'101' #108279

Open
emarsden opened this issue Aug 7, 2023 · 2 comments
Open

Incomplete support for syntax for bit-string constants b'101' #108279

emarsden opened this issue Aug 7, 2023 · 2 comments
Labels
A-sql-pgcompat Semantic compatibility with PostgreSQL O-community Originated from the community T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) T-sql-queries SQL Queries Team

Comments

@emarsden
Copy link

emarsden commented Aug 7, 2023

The b'101' syntax is being read as bytes, but should be read as a bit-string for compatibility with PostgreSQL.

root=> SELECT B'101'::integer;
 int8 
------
    5
(1 ligne)
root=> SELECT b'101'::integer;
ERROR:  invalid cast: bytes -> int

Running CockroachDB CCL v23.1.7 (x86_64-pc-linux-gnu, built 2023/07/27 00:54:56, go1.19.10)

Jira issue: CRDB-30409

@blathers-crl
Copy link

blathers-crl bot commented Aug 7, 2023

Hello, I am Blathers. I am here to help you get the issue triaged.

It looks like you have not filled out the issue in the format of any of our templates. To best assist you, we advise you to use one of these templates.

I was unable to automatically find someone to ping.

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@blathers-crl blathers-crl bot added O-community Originated from the community X-blathers-untriaged blathers was unable to find an owner labels Aug 7, 2023
@rafiss rafiss added the T-sql-queries SQL Queries Team label Aug 7, 2023
@rafiss
Copy link
Collaborator

rafiss commented Aug 7, 2023

relates to: #26128

@yuzefovich yuzefovich removed the X-blathers-untriaged blathers was unable to find an owner label Aug 7, 2023
@blathers-crl blathers-crl bot added the T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) label Aug 15, 2023
@rafiss rafiss added the A-sql-pgcompat Semantic compatibility with PostgreSQL label Aug 22, 2023
@exalate-issue-sync exalate-issue-sync bot removed the T-sql-queries SQL Queries Team label Apr 16, 2024
@yuzefovich yuzefovich added the T-sql-queries SQL Queries Team label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sql-pgcompat Semantic compatibility with PostgreSQL O-community Originated from the community T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) T-sql-queries SQL Queries Team
Projects
Status: Bugs to Fix
Development

No branches or pull requests

3 participants