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