Fix user session on mssql server and a new $db->quoteBinary() method#23213
Fix user session on mssql server and a new $db->quoteBinary() method#23213HLeithner merged 1 commit intojoomla:stagingfrom
Conversation
🤦♂️ on postgresql only 😄 |
|
shouldn't be ported on https://github.com/joomla-framework/database too ? |
|
I have tested this item ✅ successfully on 958f312 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23213. |
Yes. I will do it, I start here. |
|
I'm closing it for now |
|
@csthomas Can you re-open this please? |
|
I have tested this item ✅ successfully on 958f312 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23213. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23213. |
|
I see only one test on an unkown database (alikon) and my test on mssql so we need one for mysql and one for pgsql before this is RTC. |
|
Status back on Pending. |
|
my test was on postgresql |
|
Status "Ready To Commit" as Test by @alikon was on postgresql. |
|
So we need at least one on mysql |
|
Is MariaDB OK? |
|
Depends on the version
Am 20. Juli 2019 19:23:45 MESZ schrieb SharkyKZ <notifications@github.com>:
…Is MariaDB OK?
--
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
#23213 (comment)
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
|
|
10.1.40 and 10.3.16. |
|
A mysql 5.5 test would be great... |
|
Thanks for adding binary encoding support to Joomla. |
Summary of Changes
From J3.9 the type of
session_idcolumn isvarbinary(192)and it works OK for mysql and PostgreSQL database.In the case of mssql, this column requires explicitly cast to binary value to work properly.
See https://docs.microsoft.com/en-us/sql/t-sql/data-types/data-type-conversion-database-engine?view=sql-server-2017
Testing Instructions
Test user session, login. logout, action logs, etc.
Probably no one will test it on mssql server, please test it at least on mysql.
Expected result
Joomla works (after installing or updating) on the mssql server.
Actual result
Joomla does not work (after installing or updating) on the mssql server.
Documentation Changes Required
Yes.
A new method
$db->quoteBinary($data).