-
-
Notifications
You must be signed in to change notification settings - Fork 67
PowerShell 7: CREATE table works, SELECT table doesnt #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi! Yes, the default of Don't have time to fix this (e.g. change default for *nix), but as a workaround, switch
Presumably Thanks! |
Hm, I'm sure I fixed this originally when adding core support... Though I changed a lot since then. I will try take another look at this some time this week if I can. @slashd can you confirm what OS you are running pwsh 7 on? If it is windows, I have a feeling I know what the problem is... Thanks |
@slashd I have tried this on both linux and windows with PowerShell 7 and have been unable to replicate this issue. I believe I fixed this in core by reimplementing the [DBNullScrubber] under this commit: I do not have a mac available to test in case the issue was on that platform. If you are still having this issue, please provide details on your PS version, OS and PSSqlite module version. @RamblingCookieMonster May want to consider closing this if there is no follow up? My test:
|
Works for Invoke-SqlCmd2 as well. Thank you, fffnite for taking the time to troubleshoot this for the community. |
Works fine in Windows PowerShell 5, doesnt work in 7
Works: CREATE table Customers
Doesnt work: SELECT * from Customers
InvalidOperation: \PowerShell\Modules\PSSQLite\1.0.3\Invoke-SqliteQuery.ps1:518:25
Line |
518 | [DBNullScrubber]::DataRowToPSObject($row)
| ~~~~~~~~~~~~~~~~
| Unable to find type [DBNullScrubber].
The text was updated successfully, but these errors were encountered: