Menu

#20 OCI_BindArrayOfNumbers

v1.0_(example)
open
nobody
None
1
2014-09-30
2014-09-30
No

Hi,

Please help me bind array of OCINumbers! The minimal example I have SIGSEGV's at OCI_Execute.

gthomas@waterhouse:~/src/github.com/tgulacsi/gocilib/exp/num$ gdb ./num_array
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Reading symbols from ./num_array...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/gthomas/src/github.com/tgulacsi/gocilib/exp/num/num_array
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
cn=0x6aacb0
st=0x6aacb0
errhp=0x6aea40
in_nums[0]=1
in_nums[1]=2
in_nums[2]=3
in_nums=Á@
setSize
bindArray
bindString

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6fc6593 in ttcs2c () from /usr/lib/oracle/12.1/client64/lib/libclntsh.so.12.1

Code is attached.
I've compiled the code with

gcc -I/usr/include/oracle/12.1/client64 -L/usr/lib/oracle/12.1/client64/lib \ -locilib -lclntsh \ num_array.c -o num_array

1 Attachments

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.