File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,12 @@ const (
120120// Create typed destination for OUT parameters
121121func createTypedDestination (f * schema.Field ) interface {} {
122122 if f == nil {
123- var s string
124- return & s
123+ return new (string )
125124 }
126125
127126 // If the field has a serializer, the field type may not be directly related to the column type in the database.
128- // In this case, determine the destination type using the field's data type, which is the column type in the database.
129- // use the data type as the destination type,
130- // because
131- // If the type is declared in the tag,
127+ // In this case, determine the destination type using the field's data type, which is the column type in the
128+ // database.
132129 if f .Serializer != nil {
133130 dt := strings .ToLower (string (f .DataType ))
134131 switch schema .DataType (dt ) {
@@ -202,8 +199,7 @@ func createTypedDestination(f *schema.Field) interface{} {
202199 }
203200
204201 // Fallback
205- var s string
206- return & s
202+ return new (string )
207203}
208204
209205// Convert values for Oracle-specific types
You can’t perform that action at this time.
0 commit comments