func ociGetErrorS(err unsafe.Pointer) error { rv := C.WrapOCIErrorGet((*C.OCIError)(err)) s := C.GoString(&rv.err[0]) if len(s) > 8 && (s[0:9] == "ORA-03114" || s[0:9] == "ORA-01012") { return driver.ErrBadConn } return errors.New(s) }
func ociGetError(err unsafe.Pointer) error { rv := C.WrapOCIErrorGet((*C.OCIError)(err)) s := C.GoString(&rv.err[0]) return errors.New(s) }