You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,5 +118,14 @@ This is experimental at this stage.
118
118
119
119
### ColumnWarnings
120
120
121
+
If the struct doesn't match the SQL returned or generated. The library will spit out a warning that there is a mis-match, and then ignore it. You can turn of this warning with
122
+
123
+
```go
124
+
MySQL.ColumnWarnings = true
125
+
P, _ := MySQL.QuerySingleStruct[InsertPerson]("select * from TestWHEREID = ?", lastInsertedID)
126
+
```
127
+
If there any fields defined in InsertPerson that don't match the record set, a warning is raised.
0 commit comments