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

PLSArr #188

Closed
vsdutka opened this issue Apr 24, 2017 · 1 comment
Closed

PLSArr #188

vsdutka opened this issue Apr 24, 2017 · 1 comment

Comments

@vsdutka
Copy link

vsdutka commented Apr 24, 2017

Why I can not receive array from PL/SQL?

code:

sret := make([]string, 0, 1000)
stm, err := ses.Prep(`begin :1(1) :='test'; end;`)
defer stm.Close()
if err != nil {
	fmt.Println("1 - ", err)
	return
}

n, err := stm.ExeP(&sret)
if err != nil {
	fmt.Println("2 - ", err)
	return
}
fmt.Println("Result - ", n, len(sret), sret)

Result:

Result - 0 0 []

@vsdutka
Copy link
Author

vsdutka commented Apr 24, 2017

not only for []string.

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