Skip to content

Commit

Permalink
Fix migration server string null issue in DB
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jul 21, 2022
1 parent 89c59dc commit 0cdd057
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dbs/migration_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,14 @@ func MigrationRequests(mid int64) ([]MigrationRequest, error) {
defer rows.Close()
for rows.Next() {
var mid, migRetryCount, migCreationDate, migLastModificationDate, migStatus int64
var migURL, migInput, migServer, migCreateBy, migLastModifiedBy string
var migURL, migInput, migCreateBy, migLastModifiedBy string
var msrv sql.NullString
err := rows.Scan(
&mid,
&migURL,
&migInput,
&migStatus,
&migServer,
&msrv,
&migCreateBy,
&migCreationDate,
&migLastModifiedBy,
Expand All @@ -196,6 +197,7 @@ func MigrationRequests(mid int64) ([]MigrationRequest, error) {
MIGRATION_URL: migURL,
MIGRATION_INPUT: migInput,
MIGRATION_STATUS: migStatus,
MIGRATION_SERVER: msrv.String,
CREATE_BY: migCreateBy,
CREATION_DATE: migCreationDate,
LAST_MODIFIED_BY: migLastModifiedBy,
Expand Down

0 comments on commit 0cdd057

Please sign in to comment.