Code Monkey home page Code Monkey logo

Comments (4)

bgwdotdev avatar bgwdotdev commented on August 23, 2024 1

@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:
095b701

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:

PSSQLite> $d = { datasource = "./test.db" }
PSSQLite> Invoke-SqliteQuery @d -Query "create table customer (name)"
PSSQLite> Invoke-SqliteQuery @d -Query "insert into customer (name) values ('bob')"
PSSQLite> Invoke-SqliteQuery @d -Query "select * from customer"

name
----
bob

from pssqlite.

Szeraax avatar Szeraax commented on August 23, 2024 1

Works for Invoke-SqlCmd2 as well. Thank you, fffnite for taking the time to troubleshoot this for the community.

from pssqlite.

RamblingCookieMonster avatar RamblingCookieMonster commented on August 23, 2024

Hi!

Yes, the default of As PSObject will not work outside of Windows PowerShell.

Don't have time to fix this (e.g. change default for *nix), but as a workaround, switch -As to something else:

[ValidateSet("DataSet", "DataTable", "DataRow","PSObject","SingleValue")]
[string]
$As="PSObject"

Presumably -as DataRow

Thanks!

from pssqlite.

bgwdotdev avatar bgwdotdev commented on August 23, 2024

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

from pssqlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.