-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Don't use the server_version option to define the vendor name #3110
Comments
The server version is what we'd expect from a server being queried for a
server version. You can think of it as the same as an user agent header in
a browser: not something we have control over.
What can be done is allowing selection of the platform via class name (I
think that might already be possible, jus didn't check).
…On Mon, 16 Apr 2018, 09:35 Javier Eguiluz, ***@***.***> wrote:
In this comment: #2985 (comment)
<#2985 (comment)> you
can see that when using MariaDB, the server_version option must include
not only the version number but also the vendor name: server_version:
'mariadb-10.2.12' instead of server_version: '10.2.12'.
I wonder if this could be solved differently to keep the vendor name out
of the server_version value. Thanks for your time and consideration!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3110>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJakKO-WdG97E2GIOUwZ2OnSgusqd_9ks5tpEmkgaJpZM4TWAdO>
.
|
I don't use MariaDB (maybe @tristanbes, the original issue reporter, can help us here) but it looks like the version returned by MariaDB follows a different format. According to their official docs (https://mariadb.com/kb/en/library/version/) it would be something like this: |
I confirm that the format is different:
|
For the full story: read the first paragraph in #2825 about the mariadb version detection. MariaDB server returns the version with their vendor name (+ some prefixes or suffixes are added per distributions to handle some replications issues). Their clients 'libmariadb-client', connector/j'... will strip the vendors and prefixes transparently... In other words if you're using jdbc or php compiled with libmariadb-client, you won't see the 'mariadb' vendor. Some tentatives have been done to strip it in the php src too (like php/php-src#1767... or others I cannot find anymore). But till now we need to strip the prefix in userland. In DBAL, it's done here:
And the corresponding test file:
|
I like the idea of @Ocramius
@javiereguiluz do you think it would be ok ? |
Passing a platform is already possible: Lines 175 to 181 in d3c7081
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In this comment: #2985 (comment) you can see that when using MariaDB, the
server_version
option must include not only the version number but also the vendor name:server_version: 'mariadb-10.2.12'
instead ofserver_version: '10.2.12'
.I wonder if this could be solved differently to keep the vendor name out of the
server_version
value. Thanks for your time and consideration!The text was updated successfully, but these errors were encountered: