Skip to content

Fix for issue #592, json query fix when question mark is used in data#628

Closed
kamisoft-fr wants to merge 19 commits intosqlkata:masterfrom
kamisoft-fr:issue/592
Closed

Fix for issue #592, json query fix when question mark is used in data#628
kamisoft-fr wants to merge 19 commits intosqlkata:masterfrom
kamisoft-fr:issue/592

Conversation

@kamisoft-fr
Copy link
Copy Markdown

Fix places where the parameterPlaceholder is hardcoded to a question mark ?

Since the SqlResult still contained ToString method which had the hardcoded placeholder, here is what I've done:

  1. Added compiler to the constructor of SqlResult
  2. Made ParameterPlaceholder public
  3. Added tests PostgresJsonTests

There is so a breaking change on the SqlResult class since its public, So the sqlkata version would be changed as major (2 to 3 or 3 to 4)

@aastovas
Copy link
Copy Markdown

Any update on this PR? It would be great if we could have it merged :)

@hookenful
Copy link
Copy Markdown

I highly upvote this

@ghost
Copy link
Copy Markdown

ghost commented Oct 10, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

ahmad-moussawi and others added 18 commits February 1, 2025 07:45
This workflow automates the build and test process for a .NET project on push and pull request events to the main branch.
Added SQL Server service container and updated installation steps for sqlcmd tools.
- Add Clone() method to Include class for deep copying
- Fix Query.Clone() to deep-copy Includes list and Variables dictionary
- Fix XQuery.Clone() with same deep-copy fixes
- Add unit tests for the clone bug (independent list, objects, dict, properties)

Fixes sqlkata#747

Agent-Logs-Url: https://github.com/sqlkata/querybuilder/sessions/d82ad628-73f5-4c2f-b56e-f4021ce1519f

Co-authored-by: ahmad-moussawi <2517523+ahmad-moussawi@users.noreply.github.com>
Fix Query.Clone() shallow copy of Includes and Variables
@kamisoft-fr
Copy link
Copy Markdown
Author

Hi, I came back in this repo and cleaned my pull request since there is now a "main" branch and parameterPlaceHolder management
from this PR, only remains a class with some tests for JSON postgresql queries that shows that the default placeholder "?" is not working in this context
But changing the placeholder with "¤" now makes it work
closing the PR, adding a new one to merge into "main" instead of "master"

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.

5 participants