Closed whoisjeremylam closed 9 years ago
ie This will cause an error because errorMessage can be nil and the Scan() function doesn't handle nils properly.
var errorMessage string row.Scan(&blockchainId, &addressToActivate, &amount, &rowId, &sourceAddress, &outAsset, &outAmount, &status, &broadcastTxId, &errorMessage); err == sql.ErrNoRows return errorMessage
Should be
var errorMessage []byte row.Scan(&blockchainId, &addressToActivate, &amount, &rowId, &sourceAddress, &outAsset, &outAmount, &status, &broadcastTxId, &errorMessage); err == sql.ErrNoRows return string(errorMessage)
ie This will cause an error because errorMessage can be nil and the Scan() function doesn't handle nils properly.
Should be