Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
clean SQLColumns Col.Name with dots [nt]
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Jan 17, 2024
1 parent f615d02 commit da4a5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ func SQLColumns(colTypes []ColumnType, conn Connection) (columns iop.Columns) {

for i, colType := range colTypes {
col := iop.Column{
Name: colType.Name,
Name: strings.ReplaceAll(colType.Name, ".", "_"),
Position: i + 1,
Type: NativeTypeToGeneral(colType.Name, colType.DatabaseTypeName, conn),
DbType: colType.DatabaseTypeName,
Expand Down

0 comments on commit da4a5ee

Please sign in to comment.