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

Out sysdate parameter kills the connection. #26

Open
acautin opened this issue Sep 6, 2016 · 0 comments
Open

Out sysdate parameter kills the connection. #26

acautin opened this issue Sep 6, 2016 · 0 comments

Comments

@acautin
Copy link
Contributor

acautin commented Sep 6, 2016

OciPort = erloci:new([{logging, true}, {env, [{"NLS_LANG", "GERMAN_SWITZERLAND.AL32UTF8"}]}]).
OciSession = -------     Connection to database   --------.
SelectSysdate = <<"BEGIN :SQLT_DAT_OUT_RESULT := TO_DATE(SYSDATE); END;">>,
BoundStmt = OciSession:prep_sql(SelectSysdate).
SelectBinds = [{<<":SQLT_DAT_OUT_RESULT">>, out, 'SQLT_DAT'}].
ok = BoundStmt:bind_vars(SelectBinds).
f(R1).
R1 = [{<<0,0,0,0,0,0,0,0>>}].
BoundStmt:exec_stmt(R1).

Results in:

06.09.2016 08:59:32.721699 [error] [_OCI_] {c_src/erloci_lib/ocistmt.cpp,execute,780} Unsuported out variable type 12 (BEGIN :SQLT_DAT_OUT_RESULT := TO_DATE(SYSDATE); END;)
{error,{0,<<"[execute:779] unsupporetd type 12\n">>}}
{oci_logger,103} TCP closed
(sbsgui@127.0.0.1)27> {oci_logger,132} Terminating normal
@acautin acautin changed the title Out date parameters kills the connection. Out sysdate parameter kills the connection. Sep 6, 2016
c-bik pushed a commit that referenced this issue Apr 16, 2017
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