-
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
sql: implement the column numeric_precision_radix
in information_schema.columns
#24846
Comments
Unfortunately the column Arguably we should add it. I'll alter the description of the issue accordingly. |
numeric_precision_radix
in information_schema.columns
cc @awoods187 for prioritization. |
@techknowlogick There is a possible workaround though. |
Thanks @knz. I've been creating test tables in both postgres (specifically 9.6) and cockroachDB (v2.0), and found your assumption to likely be correct (but this was done very unscientifically and still needs more rigid confirmation). Going forward with that assumption I've come up with the following CASE that I'll try with XOrm, and I'll run it through its tests.
Then of course when this ticket is completed the above case can be reverted in xorm. |
@techknowlogick created PR that adds radix to columns schema: #28467 |
in `information_schema.columns` As documented here: https://www.postgresql.org/docs/10/static/infoschema-columns.html > If data_type identifies a numeric type, this column indicates in > which base the values in the columns numeric_precision and > numeric_scale are expressed. The value is either 2 or 10. For all > other data types, this column is null. see cockroachdb#24846 Release note (sql change): `numeric_precision_radix` was added to `information_schema.columns`
28467: sql: implement the column `numeric_precision_radix` r=nvanbenschoten,knz a=pkit in `information_schema.columns` As documented here: https://www.postgresql.org/docs/10/static/infoschema-columns.html > If data_type identifies a numeric type, this column indicates in > which base the values in the columns numeric_precision and > numeric_scale are expressed. The value is either 2 or 10. For all > other data types, this column is null. see #24846 Release note (sql change): `numeric_precision_radix` was added to `information_schema.columns` Co-authored-by: Constantine Peresypkin <constantine.peresypkin@datarobot.com>
As documented here: https://www.postgresql.org/docs/10/static/infoschema-columns.html
This is used by go-xorm and go-gitea, for example using the following query:
Linked GH Issues:
go-gitea/gitea#3765
go-xorm/xorm#802
The text was updated successfully, but these errors were encountered: