From 5c187bc757afa4d564281b1b7eec49f7ffccb421 Mon Sep 17 00:00:00 2001 From: Jim Lambert Date: Sat, 15 Feb 2020 11:32:40 -0500 Subject: [PATCH] refactor to be explicitly oci8 --- callback_create.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/callback_create.go b/callback_create.go index 3b6582d7..40bb516d 100644 --- a/callback_create.go +++ b/callback_create.go @@ -146,7 +146,8 @@ func createCallback(scope *Scope) { return } - if scope.isOracle() { + // this is very specific to how the oci8 driver handles the last insert id via a sql.Out parameter + if scope.Dialect().GetName() == "oci8" { var stringId string var intId uint32 primaryIsString := false