Skip to content

jdbc: database metadata: getColumns reports incorrect column type info #40

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

Open
ztarvos opened this issue Sep 5, 2018 · 0 comments
Open

Comments

@ztarvos
Copy link

ztarvos commented Sep 5, 2018

The info returned by DatabaseMetaData.getColumns() is too limited.
Presently it returns the following:

TABLE_NAME
COLUMN_NAME
ORDINAL_POSITION

The rest of the fields contain some constant or inadequate data:
DATA_TYPE is always Types.OTHER
TYPE_NAME is either "integer" or "scalar"
NUM_PREC_RADIX is always 10
NULLABLE is always 1
IS_NULLABLE is always YES
SOURCE_DATA_TYPE ia always Types.OTHER
IS_AUTOINCREMENT is always "NO"
IS_GENERATEDCOLUMN is always "NO"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants