You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this against a table with NULL values, it ends up being a string in sqlite "<nil>"
If I comment this out it works fine, have not run any of the tests yet. just putting it here before I go down the rabbit hole in case this is desired behavior
from main.go
// Rely on fmt.Sprintf to handle formatting, potential
// conversion of data to string type before storing back
// in our []interface{} for use by db.Exec
// sqliteOutput[idx] = fmt.Sprintf("%v", sqliteOutput[idx])
Will experiment more tomorrow
The text was updated successfully, but these errors were encountered:
Couldn't find any unit tests to check this so just compiled it and ran it in my environment, couldn't find any negative impact and it 100% fixed the NULL values being treated as string "<nil>"
I'll see if i can write some tests in the coming days to prove it, then ill put up a PR If interested
When I run this against a table with NULL values, it ends up being a string in sqlite "<nil>"
If I comment this out it works fine, have not run any of the tests yet. just putting it here before I go down the rabbit hole in case this is desired behavior
from main.go
Will experiment more tomorrow
The text was updated successfully, but these errors were encountered: