Skip to content

Commit 5e80cad

Browse files
committed
minor changes and typos
1 parent 40899c0 commit 5e80cad

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

oracle/common.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,12 @@ const (
120120
// Create typed destination for OUT parameters
121121
func 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

0 commit comments

Comments
 (0)