Skip to content

Commit

Permalink
fix: Cursor PrimaryKey reflection (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Runaho committed Jan 26, 2024
1 parent 3528d1c commit dcd3242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cursor/cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func Create[T any](row *T, fields []string, primaryKey string) (string, error) {

if len(fields) == 0 {
return utils.MapToBase64(map[string]any{
primaryKey: reflectRow.FieldByNameFunc(fieldWithColumnIsEqual(primaryKey)).String(),
primaryKey: reflectRow.FieldByNameFunc(fieldWithColumnIsEqual(primaryKey)).Interface(),
})
}

Expand Down

0 comments on commit dcd3242

Please sign in to comment.