Skip to content

fix line concatenate type error#3

Open
jukrb0x wants to merge 2 commits into
kyleaoman:masterfrom
jukrb0x:patch-1
Open

fix line concatenate type error#3
jukrb0x wants to merge 2 commits into
kyleaoman:masterfrom
jukrb0x:patch-1

Conversation

@jukrb0x

@jukrb0x jukrb0x commented Jul 29, 2021

Copy link
Copy Markdown

Problem recurrence

the query

SELECT SUM(SH.StellarInitialMass) FROM ...

The SUM returns with no name of the column, which will invoke the exception at Read column info

Fix

When the program raises an exception at Read column info, line will be appended to the message, where line is a byte string that cannot be concatenated with a string directly.

So the complier will throw TypeError:

image

After the decoding of bytes, it shows the message correctly.

image

@jukrb0x

jukrb0x commented Jul 30, 2021

Copy link
Copy Markdown
Author

@Sunnyw-bot caught this problem during her research!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant