-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
SERIAL4 is showing up as INT8 after creating table. #55864
Comments
Hello, I am Blathers. I am here to help you get the issue triaged. Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here. I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
thanks for the issue @wontruefree. I believe the issue here is that when the setting I don't know if it's do-able for us to make different Otherwise, we may address this issue by returning a warning (or possibly an error) if a SERIAL4 or SERIAL2 column is created and |
So no matter which serial you use (SERIAL4, SERIAL8) you will only get an INT8? I am reading the documentation and I dont see the difference in data_types. |
@wontruefree Yes, if you use If possible, I would recommend that you try using |
Describe the problem
I am trying to create a 32bit integer serial and I am getting a 64 bit.
To Reproduce
Expected behavior
the column type should be an
INT4
Environment:
Build Tag: v20.1.8
Build Time: 2020/10/21 15:46:38
Distribution: CCL
Platform: linux amd64 (x86_64-unknown-linux-gnu)
Go Version: go1.13.9
C Compiler: gcc 6.3.0
Build SHA-1: ffd029f
Build Type: release
MacOS
Docker
Additional context
Trying to port an application from postgres to cockrochdb
The text was updated successfully, but these errors were encountered: