Skip to content
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

(Refactor) Use ANSI-compatible syntax for raw database queries #4300

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

Roardom
Copy link
Collaborator

@Roardom Roardom commented Nov 1, 2024

In preparation for #3763 (and overall good practice)

The following still needs to be fixed before postgres is compatible:

  • Fix inline @ variables in refund command

Find replacements for the following functions:

  • HEX, UNHEX,
  • JSON_ARRAYAGG, JSON_OBJECT, JSON_ARRAY
  • SUBSTRING_INDEX
  • UNIX_TIMESTAMP, DATE, FROM_DAYS, TO_DAYS
  • INET6_NTOA

@Roardom Roardom marked this pull request as ready for review November 1, 2024 10:37
@Roardom Roardom marked this pull request as draft November 1, 2024 10:42
@Roardom
Copy link
Collaborator Author

Roardom commented Nov 2, 2024

I runtime tested all the changed queries (except the migrations, but those are tested in ci already). We can worry about the remaining functions later in a "part 2" pr. The remaining functions will likely need to be duplicated in php checking the database system currently used and having 2 separate queries.

@Roardom Roardom marked this pull request as ready for review November 2, 2024 05:24
@HDVinnie HDVinnie merged commit 8eb1e64 into HDInnovations:8.x.x Nov 4, 2024
5 checks passed
@HDVinnie HDVinnie deleted the ansi-db branch November 4, 2024 02:15
Roardom added a commit to Roardom/UNIT3D-Community-Edition that referenced this pull request Nov 26, 2024
@Roardom Roardom mentioned this pull request Nov 26, 2024
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.

2 participants