Get Oracle Erro Code using SQLx and go-ora #237
Replies: 3 comments 3 replies
-
not all error returned as oracle error interface |
Beta Was this translation helpful? Give feedback.
-
A this time the err variavel has this ( taken with debug ) has : error(*github.com/sijms/go-ora/v2/network.OracleError) *{ErrCode: 6550, ErrMsg: "ORA-06550: line 1, column 27:\nPL/SQL: ORA-00942: table or view does not exist\nORA-06550: line 1, column 15:\nPL/SQL: SQL Statement ignored\n"} This code is not working to catch the values:
How i transform the code tu get ErrCode and ErrMsg ? |
Beta Was this translation helpful? Give feedback.
-
all oracle related errors are returned as OracleError |
Beta Was this translation helpful? Give feedback.
-
Im using go-ora in my developement
The package impressed me.
Now i am working whith Store Procedures, and i need to know the oracle erro code that is throw in the procedure.
this is my code.
This is my code. I try this and not give me result
`
_, err = txw.Exec(sSql)
`
Can you help me please ?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions