User tests: Successful: Unsuccessful:
The install file for postgres is invalid, single quotes are not escaped properly.
It is also possible to escape it with (E'i\'m', 'en', 0),
. What you guys prefer.
Install joomla with postgres.
Installation goes through.
Installation fails.
Status | New | ⇒ | Pending |
Category | ⇒ | Postgresql SQL Installation |
Labels |
Added:
?
?
|
Update file done.
Category | Postgresql SQL Installation | ⇒ | Postgresql SQL Administration com_admin Installation |
well if it is a matter of what i prefer than my preference goes to 'i''m'
i think is more easily readble
Has both its advantages and disadvantages when doing a comparison between the joomla.sql files of the two database types to check if data is the same. Either you see an "E" at the beginning of a string or the additional single quote instead of a backslash in the middle of a string in the differences.
I've just verified that we don't have the single quotes within strings elsewhere in sql, so we are free in our choice and don't need to be consistent with elsewhere, and I can confirm that this PR covers all occurrences.
I have tested this item
Hint for other testers: Different to what is described in section "Actual result", the installation worked here on PostgreSQL for me without the PR.
But there were lots of log entries like WARNING: nonstandard use of \' in a string literal at character ...
in the postgresql server log file, and these disappear when having this PR applied.
There are many log entries like WARNING: nonstandard use of \\ in a string literal at character ...
left in the postgresql server log file, so it seems we have elsewhere a problem with quoted backslashes in our sql. I would assume it is class paths in extensions table ;-) @laoneo Could you check that and if possible correct with another PR?
Can you?
I'll try, be patient.
Forget my previous post, this PR here is good as it is.
@laoneo add change for finder.sql file see Digital-Peak#14
Category | Postgresql SQL Installation Administration com_admin | ⇒ | Postgresql SQL Administration com_admin com_finder Installation |
I have tested this item
tested on postgresql 11
we still have warning for the double/triple backslash, but matter for another pr
I have tested this item
Tested on PotsgreSQL 11.
The last change (file administrator/components/com_finder/sql/install.postgresql.sql
) I've tested by review.
From my point of view this file is not really needed. Or is there a scenario in which com_finder has to be (re-)installed (normal install or discovery)? @wilsonge what do you think?
Status | Pending | ⇒ | Ready to Commit |
RTC
@alikon For the (double) backslashes I have prepared a branch for a PR, using the E'...'
syntax for those strings which contain \/
or \\
. You could see the changes here: 4.0-dev...richard67:4.0-dev-fix-double-backslash-warnings-postgresql.
That removes almost all of the warnings from the postgresql-11.log, but a few remain of which I haven't found the source yet. Maybe these come from database actions in PHP? If so, we would have a problem if we don't want to have database-specific statements (what would be a mess). So maybe we should set a session variable standard_conforming_strings=on
? The changes in this PR here will still be correct then, but for the other backslashes we might be ok then without any other change? Can you check that? If necessary we can talk on Glip in the evenings or on weekend.
i was playing on the same toy as you
and i've the same conclusion as you
but a few remain of which I haven't found the source yet.
Yeah better to chat on Glip ......
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-25 10:49:00 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
@laoneo Please do the same changes in the update sql script
postgresql/4.0.0-2018-07-29.sql
, too.