aboutsummaryrefslogtreecommitdiff
path: root/query.go
diff options
context:
space:
mode:
Diffstat (limited to 'query.go')
-rw-r--r--query.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/query.go b/query.go
index f5f6fb7..a2a673d 100644
--- a/query.go
+++ b/query.go
@@ -125,6 +125,7 @@ func insertRecord(v reflect.Value, recordIndex int, stmt preparedStatement, argu
if len(scanSlots) == 0 {
_, err = stmt.Exec(argumentSlots...)
} else {
+ // TODO: using QueryRow for inserting is somehow extremely expensive in terms of allocs; other libraries are doing better by limiting themselves to Exec() + LastInsertId()
err = stmt.QueryRow(argumentSlots...).Scan(scanSlots...)
}
if err != nil {