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
The affected rows count in Scan method is always zero, same issue for Row and Rows method. It because inside Scan method it calls Rows method, iterate the returned *sql.Rows and calculate affected rows count in ScanRows method after the sql log is already printed
The text was updated successfully, but these errors were encountered:
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Description
If using
Find
method to queryThe sql log is:
While change
Find
toScan
methodThe sql log is
The affected rows count in
Scan
method is always zero, same issue forRow
andRows
method. It because insideScan
method it callsRows
method, iterate the returned*sql.Rows
and calculate affected rows count inScanRows
method after the sql log is already printedThe text was updated successfully, but these errors were encountered: