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
TestPlSqlTypes/Osh test is failing #253
Comments
Go version, DB version, Instant Client version? current HEAD does pass with client 21.4, Server 19.17:
|
It does pass on v0.34.0, too:
|
Go Version: go1.18.5 go test -run=TestPlSqlTypes user=test password=SECRET-*** connectString=db201911301540_high configDir=/tmp/godror_drv_test-2074419129connectionClass=TestClassName enableEvents=1 externalAuth=0 heterogeneousPool=0 |
TestPlSqlTypes passes with Client: 21.7.0.0.0 go test -run=TestPlSqlTypes user=test password=SECRET-*** connectString=db201911301540_high configDir=/tmp/godror_drv_test-4010182059connectionClass=TestClassName enableEvents=1 externalAuth=0 heterogeneousPool=0 |
Thanks for the test. looks its fixed in latest instant client versions, I shall check and get back. |
The RCA seems related to null values for un-initialized members in the nested structure inside an object which is getting returned. So for the test, z_plsql_types_test.go can you try initializing the nested structure, rec before returning.
|
Tried following changes in v0.34.0
Following error is seen |
I was checking on latest code. For the version v34.0 , aclob is not a member in my_record in test sample, so you can remove this line from z_plsql_types_test.go and try it.
|
Thanks , this worked |
The issue is in 19c release. You can apply the work around if you want to use 19c or upgrade the client to 21c. |
ok,thanks |
On linux with 0.34.0 ,TestPlSqlTypes/Osh is failing with following error
z_plsql_types_test.go:405: begin test_pkg_sample.test_osh(:1, :2); end;: 1. get[0]: GetAttribute("ID"): getAttributeValue("ID", obj=MY_RECORD, attr=&{typeDef:0x107efb30 checkInt:3933035998 refCount:1 env:0x34e30b90 belongsToType:0x7daae41b52e0 name:0x7daae40c3960 nameLength:2 typeInfo:{oracleTypeNum:2010 defaultNativeTypeNum:3000 ociTypeCode:2 dbSizeInBytes:0 clientSizeInBytes:0 sizeInChars:0 precision:5 scale:0 fsPrecision:0 objectType:}}, typ=3000): ORA-22060: OCI-22060: argument [2] is an invalid or uninitialized number
The text was updated successfully, but these errors were encountered: