]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
mariadb+pymsql -> mariadb+pymysql
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 7 Apr 2021 15:03:06 +0000 (11:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 7 Apr 2021 15:03:06 +0000 (11:03 -0400)
Fixes: #6217
Change-Id: Icd8275c49f30ea77d00f76209fb71fb2b8fa9528

lib/sqlalchemy/dialects/mysql/base.py

index 986ed875759c5d857970e9186953602da50764d6..3966126e2d670750c910e452fce185d1d84f5484 100644 (file)
@@ -33,7 +33,7 @@ syntactical and behavioral differences that SQLAlchemy accommodates automaticall
 To connect to a MariaDB database, no changes to the database URL are required::
 
 
-    engine = create_engine("mysql+pymsql://user:pass@some_mariadb/dbname?charset=utf8mb4")
+    engine = create_engine("mysql+pymysql://user:pass@some_mariadb/dbname?charset=utf8mb4")
 
 Upon first connect, the SQLAlchemy dialect employs a
 server version detection scheme that determines if the
@@ -51,7 +51,7 @@ useful for the case where an application makes use of MariaDB-specific features
 and is not compatible with a MySQL database.    To use this mode of operation,
 replace the "mysql" token in the above URL with "mariadb"::
 
-    engine = create_engine("mariadb+pymsql://user:pass@some_mariadb/dbname?charset=utf8mb4")
+    engine = create_engine("mariadb+pymysql://user:pass@some_mariadb/dbname?charset=utf8mb4")
 
 The above engine, upon first connect, will raise an error if the server version
 detection detects that the backing database is not MariaDB.