User tests: Successful: Unsuccessful:
Changes the order of the DB connections offered so that they appear as
MySQLi
MySQL (PDO)
PostgreSQL
PostgreSQL (PDO)
AND sets MySQLi as the default
Pull Request for Issue #19779
Status | New | ⇒ | Pending |
Category | ⇒ | Installation |
Did somebody investigate why PDO fails and mysqli works? Is it because of a bug in the driver?
and no explanation concerning pdo
Again I repeat - PDO is not new and is present in J3 - without explanation
The PDO driver has been in core since 3.4. You're just now noticing this?
The order is primarily drawn up by alphabetical order of the driver names. In 3.x it's this:
mysql, mysqli, pdomysql
In 4.0 it's this:
mysql, mysqli
(Note that the Framework never supported a class for the deprecated ext/mysql
and the "MysqlDriver" class is the PDO class)
"Expected" is subjective
I must admit i never even looked at the possibilty of pdo as i was never informed of its usefulness.
If it is “better” to use it as default (and users are informed), it’s fine to leave it as first choice (when whatever is broken is solved evidently).
Found what looked like "broken"
See #19779 (comment)
I have tested this item
Tested OK. I guess PDO is for specific needs and those who know that will choose it.
It is better to default to mysqli
I guess PDO is for specific needs and those who know that will choose it.
No, not really. It's almost the same as MySQL versus MySQLi on PHP 5 (before the former got deprecated). It's just a different underlying API being used to process database transactions. With our abstraction layer the only thing that should matter is whether you have the dependencies for each driver installed. PDO's not some "super advanced special case" system (quite the opposite, most of the PHP ecosystem only uses or supports PDO based database connections, CMS' like Joomla and WordPress are the exception to this pattern where the non-PDO based PHP extensions are used more dominantly).
You are most certainly right, but it is not explained to users installing new sites as we have no tip.
but it is not explained to users installing new sites as we have no tip.
That needs to be in the requirements page of Joomla NOT in the db page of the installation
The PDO driver has been in core since 3.4. You're just now noticing this?
Again I repeat - PDO is not new and is present in J3 - without explanation
Labels |
Added:
?
|
Times like this make me wish we would've accepted the "kill multi-db support" proposals, then we could just unplug everything but MySQLi and be done with it...
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-04-03 18:54:26 |
Closed_By | ⇒ | brianteeman |
Status | Closed | ⇒ | New |
Closed_Date | 2018-04-03 18:54:26 | ⇒ | |
Closed_By | brianteeman | ⇒ |
Status | New | ⇒ | Pending |
as the default is set at mysqli the order doesnt matter
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-08-08 12:36:11 |
Closed_By | ⇒ | brianteeman |
i am absolutey not sure this is the solution. We should first be explained why the proposal for pdo exists and what it is supposed to solve. Also, these new possibilties should get a tip to explain that choice to users.