1. 28 Jun, 2020 1 commit
  2. 27 Jun, 2020 1 commit
    • Sergei Morozov's avatar
      Remove ServerInfoAwareConnection#requiresQueryForServerVersion() as an implementation detail · b98abf0a
      Sergei Morozov authored
      Testing the implementations of this method requires partial mocking of the implementing class which makes it impossible to make them `final` (#3590).
      
      Additionally, this API breaks the encapsulation of the driver layer: instead of exposing the fact of whether the connection will perform a query to detect the server version, the driver should just instantiate a platform corresponding to a connection.
      
      The rationale behind introducing this method (#487) is really questionable:
      
      > This is also required for drivers that cannot return the database server version without an additional query (performance reasons).
      
      1. There's no evidence that an underlying driver that exposes the server version via its API doesn't make a request of any kind to the server.
      2. For an application that works with any realistic database, a query like `SELECT VERSION()` wouldn't be a performance bottleneck.
      3. Even if it was, it's always possible to specify the platform version upfront. Otherwise, the current logic of falling back to a default platform may cause undefined behavior of the application (we don't test the compatibility of the lowest level of the DBAL platform with all supported server versions). Remember, “If it doesn’t work, it doesn’t matter how fast it doesn’t work.”
      b98abf0a
  3. 17 Jun, 2020 3 commits
  4. 09 Jun, 2020 1 commit
  5. 27 May, 2020 1 commit
  6. 11 Apr, 2020 1 commit
  7. 08 Apr, 2020 1 commit
  8. 07 Apr, 2020 1 commit
  9. 21 Mar, 2020 1 commit
  10. 17 Mar, 2020 1 commit
  11. 30 Dec, 2019 3 commits
  12. 17 Mar, 2019 2 commits
  13. 02 Oct, 2018 4 commits
  14. 01 Jul, 2018 1 commit
  15. 01 Apr, 2018 1 commit
  16. 29 Jan, 2018 1 commit
  17. 07 Dec, 2017 1 commit
  18. 19 Nov, 2017 2 commits
  19. 13 Jun, 2017 1 commit
  20. 29 Apr, 2017 1 commit
  21. 01 Feb, 2017 1 commit
    • Pau's avatar
      Mysqli: Allow secure connections using SSL · 78e58376
      Pau authored
      The current driver has no option to allow the usage of SSL connections on mysql. I've used the same name params as mysql client.
      An example of mysql client usage would be:
      
      mysql --ssl-ca='path_to_ca.pem' --ssl-cert='path_to_client_cert.pem' --ssl-key='path_to_client_key.pem'
      
      refactor secure connection as params
      
      remove space
      
      add space
      
      refactor secure connection
      
      rename method
      
      rename method
      
      docs: add ssl params to use in mysqli driver
      
      rename test method
      
      refactor method setSecureConnection
      
      fix bug
      
      add comment to method
      
      remove string escaping
      78e58376
  22. 29 Dec, 2014 1 commit
  23. 19 Dec, 2014 1 commit
  24. 05 Nov, 2014 1 commit
  25. 20 Oct, 2014 1 commit
  26. 08 Jul, 2014 1 commit
    • mikeSimonson's avatar
      Allow to connect without a dbname param · 387eb545
      mikeSimonson authored
      The PDO connection allow the instantiation of the connection even if the dbname
      parameter isn't present. This change is there to make sure both behave the same way.
      387eb545
  27. 21 May, 2014 1 commit
  28. 12 Feb, 2014 2 commits
  29. 09 Feb, 2014 1 commit
  30. 08 Feb, 2014 1 commit