Standardize casing for NULL in error messages
This commit is contained in:
+2
-2
@@ -240,7 +240,7 @@ type scanPlanBinaryBoolToBool struct{}
|
||||
|
||||
func (scanPlanBinaryBoolToBool) Scan(src []byte, dst any) error {
|
||||
if src == nil {
|
||||
return fmt.Errorf("cannot scan null into %T", dst)
|
||||
return fmt.Errorf("cannot scan NULL into %T", dst)
|
||||
}
|
||||
|
||||
if len(src) != 1 {
|
||||
@@ -261,7 +261,7 @@ type scanPlanTextAnyToBool struct{}
|
||||
|
||||
func (scanPlanTextAnyToBool) Scan(src []byte, dst any) error {
|
||||
if src == nil {
|
||||
return fmt.Errorf("cannot scan null into %T", dst)
|
||||
return fmt.Errorf("cannot scan NULL into %T", dst)
|
||||
}
|
||||
|
||||
if len(src) != 1 {
|
||||
|
||||
Reference in New Issue
Block a user