-
I'm fairly new to golang, and I ran into a problem when trying to call a stored procedure.
And this is the code I'm using from go
The code doesnt't return any errors, and in fact I can see the columns's name from rows, but I dont get any data. It doesnt't get into that last for I have in my code. And when I go into SQLDeveloper and call the procedure from there with the same arguments, I get all the data I expect to get. Can someone tell me if I am doing something wrong, please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What is |
Beta Was this translation helpful? Give feedback.
What is
QUALTRICS_survey_data_typ
?Your code does not check
e
of ExecContext and anderr
of WrapRows - is this intentional, error, or just the copy-paste?What does
rows.Scan
return, and most_importantly - what isrows.Err()
at the end?(BTW you want to
defer stmt.Close()
anddefer rows.Close()
to not leave cursors open).