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

Issues in SQLSetDescField & SQLGetDescField functions #24

Open
Hunaid2000 opened this issue May 23, 2024 · 0 comments
Open

Issues in SQLSetDescField & SQLGetDescField functions #24

Hunaid2000 opened this issue May 23, 2024 · 0 comments

Comments

@Hunaid2000
Copy link
Contributor

  • No consistency checks are performed in SQLSetDescField & SQLGetDescField functions.

  • A call to SQLSetDescField function with field SQL_DESC_TYPE should set some fields to default values.

  • Some descriptor fields are R/W according to API reference but throws error when set/get is called for them.

Example from ARDSetField that is used inside SQLSetDescField function:

psqlodbc/pgapi30.c

Lines 636 to 641 in 7ec2337

case SQL_DESC_DATETIME_INTERVAL_PRECISION:
case SQL_DESC_LENGTH:
case SQL_DESC_NUM_PREC_RADIX:
default:ret = SQL_ERROR;
DC_set_error(desc, DESC_INVALID_DESCRIPTOR_IDENTIFIER,
"invalid descriptor identifier");

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

No branches or pull requests

1 participant