User tests: Successful: Unsuccessful:
Pull Request for Issue #9457 and new issue (in MSSQL).
This solves languages (and probably other extensions) install problems in MSSQL and "PDO (MySQL)" in strict mode.
None.
@alikon @waader since you are the db experts please check and review.
Category | ⇒ | SQL Administration Components MS SQL Installation |
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
hum, so it seems we have another data columns without default value ...
i bet is this one https://github.com/joomla/joomla-cms/blob/staging/installation/sql/mysql/joomla.sql#L1765
@waader i can confirm your findings on pdo but i'm quite sure is the same mssql
@andrepereiradasilva you have opend a "Pandora's box" (pdo-mysql + mssql)
and yes your bet is winning
i'm still testing on pdo but for me the schema should be something like this:
in this way i'm able to go a little forward ...
....now i'm stuck on asset_id
....
ok so the data column should be fixed now.
@andrepereiradasilva you have opend a "Pandora's box" (pdo-mysql + mssql)
i have that strange habit
But, IMO this PDO strict mode is a good thing because it makes all databases work in similiar way.
IMO 4.0 should only accept strict mode.
I have tested this item
Now works for pdo_mysql and mssql. After login to the mssql instance there is another error showing up but that´s another story.
One suggestion: It would be nice to see the sqlmode in systemsinformation.
@waader did you test installing a fresh new site with multilingual enabled
and with at least 2 languages ?
On 24 Aug 2016 11:02 am, "waader" notifications@github.com wrote:
I have tested this item
2f70844
Now works for pdo_mysql and mssql. After login to the mssql instance there
is another error showing up but that´s another story.
This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/11763
https://issues.joomla.org/tracker/joomla-cms/11763.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11763 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALFsUpxUDmA4Un_Z1tdjTu4XnqJMBvnks5qjAiRgaJpZM4JrHXL
.
BTW just notice that if you enable the finder plugins you can't even save content in PDO Mysql Strict Mode! But that is not for this PR.
Pandora's box ...
We really need a db expert checking all this PDO MySql Strict things.
Update: Added issue #11771 for this
Are you ready to start an autumn of code ?
On 24 Aug 2016 1:31 pm, "andrepereiradasilva" notifications@github.com
wrote:
BTW just notice that if you enable the finder plugins you can't even save
content in PDO Mysql Strict Mode! But that is not for this PR.
[image: image]
https://cloud.githubusercontent.com/assets/9630530/17929146/833b91da-69f6-11e6-94c1-bc3d7e271fbc.png[image: image]
https://cloud.githubusercontent.com/assets/9630530/17929149/864f9182-69f6-11e6-8867-456e7a3097f8.pngPandora's box ...
We really need a db expert checking all this PDO MySql Strict things.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11763 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALFsbjgd8kRJQ8s9H5THN1SLksTmQ7Dks5qjCt0gaJpZM4JrHXL
.
Are you ready to start an autumn of code ?
ehhehe. Not me, i'm no DB expert, but this IMO should be solved for 4.0
Joomla is bypassing the strict mode (MySql 5.6.6+ default) because of lack of consistency in joomla DB.
Maybe we should add a comment to the hack in the driver?
If you install languages when install a fresh site don't work on pdo
strict mode... I'm working on a pr that solve the issue you reported about
finder plugin enabled too... I'll update you asap...
On 25 Aug 2016 11:22 am, "andrepereiradasilva" notifications@github.com
wrote:
@alikon can you confirm it works now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
ok should work now in pdo strict mode now
Title |
|
Title |
|
still don't work on pdo strict-mode 10.1.8-MariaDB in this way
did you miss my previous comment #11763 (comment) ?
i've submitted a fix to your branch andrepereiradasilva#67
@alikon did you tested the latest version?
I already solved that: https://github.com/joomla/joomla-cms/pull/11763/files#diff-135c6f58583408312a709459b19594c7R1765
I think so, but I'll double check
i followed this path
//$this->connection->query("SET @@SESSION.sql_mode = '';");
$this->connection->query("SET @@SESSION.sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION';");
this is what phpmyadmin report about DB
if i repeat the same step but with andrepereiradasilva#67 applyied installation with multilgual enabled + 4 languages content menus etc goes OK
p.s.
PDO sould be considered as a different DB .... what is valid for other's DB is not valid with PDO
so this PR should be diveived in two parts one for MYSQL PDO (STRICT MODE) and one for MSSQL IMHO
could it be the mariadb version ?
andrè
it could be, but really is quite odd, what is your php version ?
7.0.8
i suspect your error is other data column (session table?)
like someone we both knows is used to say .... hmmm ;)
i mean how can you have a data
has no default value error if the column clearly has now a default value ...
`data` text NOT NULL DEFAULT '',
i've digged more on this issue, here is what happens on my environment when i click on extra step install languages
as you may notice the field data
is not present in the INSERT field list
nor is present in the xml
<extension name="Armenian" element="pkg_hy-AM" type="package" version="3.4.4.1" detailsurl="https://update.joomla.org/language/details3/hy-AM_details.xml"/>
so why that field should have the NOT NULL constraint ?
Don't know. But the not null is on the 3 db systems
Category | SQL Administration Components MS SQL Installation | ⇒ | SQL Administration Components MS SQL Installation Libraries |
I have tested this item
I have tested this item
Works with mssql!
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
@brianteeman sorry please remove RTC until @alikon confirm this.
Status | Ready to Commit | ⇒ | Pending |
Done :)
Labels |
Removed:
?
|
The @zero-24 robot was faster
Hehe :)
i notice now you changed the update libraries in your PR (that was merged in this), did you test the extension updates work fine after that?
@andrepereiradasilva extension updates doesn't not work with PDO strict mode even without that change, i've made a fix for this scenario , see andrepereiradasilva#76 now you should be able to upgrade extensions, tested with com_patchtester and weblinks
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
@brianteeman since my last PR andrepereiradasilva#76 is not yet merged i suggest you to remove the RTC status....
Sorry I misread that comment
Status | Ready to Commit | ⇒ | Pending |
Labels |
Remove RTC
Labels |
Removed:
?
|
@andrepereiradasilva can you evaluate my last one ...
Category | SQL Administration Components MS SQL Installation Libraries | ⇒ | SQL Administration com_admin MS SQL Installation Libraries Components |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-04 09:08:02 |
Closed_By | ⇒ | zero-24 |
I have not tested this item.
- I applied your patch
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11763.