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

Columns with varrays never gets NULL while fetching #56

Closed
ghost opened this issue Oct 26, 2016 · 1 comment
Closed

Columns with varrays never gets NULL while fetching #56

ghost opened this issue Oct 26, 2016 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Oct 26, 2016

Hi Vincent,
i fetch data from a table which contains a column with an "varray(10) of integer".
For some rows the column with the int-array is set to NULL.
If I now fetch the data with different settings of "OCI_SetFetchSize(st, 10)" i get different results:

  • OCI_IsNull() never gets TRUE even if the column with the int-array is definitly null
    
  • the first array fetch gives correct data for the size of the int-array (OCI_CollGetSize is 0)
    
  • the following array fetches didnt clean the previous results, so arrays which are NULL will have a size and data from the previous fetch
    

affected Version: 4.2.1
sourcecode is attached

Regards
Herbert Metzdorf
testcoll.zip

@vrogier
Copy link
Owner

vrogier commented Oct 26, 2016

Hi,

Thanks for reporting issues :)

The problem is confirmed and the root cause identified (wrong usage of null indicators for collection based columns).

I will commit a fix asap by this evening or tomorrow.

Thanks.

Regards,

Vincent

@vrogier vrogier added this to the v4.3 milestone Oct 26, 2016
@vrogier vrogier self-assigned this Oct 26, 2016
@vrogier vrogier assigned vrogier and unassigned vrogier Jan 20, 2018
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

1 participant