Skip to content

Commit

Permalink
fix returning multiple column
Browse files Browse the repository at this point in the history
  • Loading branch information
sijms committed Mar 23, 2023
1 parent d4dcfd1 commit 0fd9f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func NewStmt(text string, conn *Connection) *Stmt {
// returning clause
var err error
if ret.stmtType != PLSQL {
ret._hasReturnClause, err = regexp.MatchString(`\bRETURNING\b\s+\w+\s+\bINTO\b`, uCmdText)
ret._hasReturnClause, err = regexp.MatchString(`\bRETURNING\b\s+(\w+\s*,\s*)*\s*\w+\s+\bINTO\b`, uCmdText)
if err != nil {
ret._hasReturnClause = false
}
Expand Down

0 comments on commit 0fd9f9a

Please sign in to comment.