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
Hi
Not an issue just some snippet of code I wanted to share.
Sometime you get an error like error at or near ".". I have 100 "." in my query, not really helpful (:
Now you can run Get-SqlQueryError after getting an error from Invoke-SqlQuery and it will show you the last query and mark the error location in red so you know which "." it is:
Probably need some refining and testing (tested it only on PostgreSQL) but maybe it can help someone
This discussion was converted from issue #33 on February 22, 2024 16:38.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
Not an issue just some snippet of code I wanted to share.
Sometime you get an error like
error at or near "."
. I have 100 "." in my query, not really helpful (:Now you can run
Get-SqlQueryError
after getting an error fromInvoke-SqlQuery
and it will show you the last query and mark the error location in red so you know which "." it is:Probably need some refining and testing (tested it only on PostgreSQL) but maybe it can help someone
Beta Was this translation helpful? Give feedback.
All reactions