This is an automated email from the ASF dual-hosted git repository.

eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new ed552e2945 Change links to SQLAlchemy 1.4 (#34288)
ed552e2945 is described below

commit ed552e294596b27288fb040abd1634cb77e419c9
Author: Andrey Anshin <[email protected]>
AuthorDate: Tue Sep 12 09:59:44 2023 +0400

    Change links to SQLAlchemy 1.4 (#34288)
---
 airflow/settings.py                           | 2 +-
 docs/apache-airflow/howto/set-up-database.rst | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/airflow/settings.py b/airflow/settings.py
index 43dd84eee8..a278316d5a 100644
--- a/airflow/settings.py
+++ b/airflow/settings.py
@@ -311,7 +311,7 @@ def prepare_engine_args(disable_connection_pool=False, 
pool_class=None):
         # Typically, this is a simple statement like "SELECT 1", but may also 
make use
         # of some DBAPI-specific method to test the connection for liveness.
         # More information here:
-        # 
https://docs.sqlalchemy.org/en/13/core/pooling.html#disconnect-handling-pessimistic
+        # 
https://docs.sqlalchemy.org/en/14/core/pooling.html#disconnect-handling-pessimistic
         pool_pre_ping = conf.getboolean("database", 
"SQL_ALCHEMY_POOL_PRE_PING", fallback=True)
 
         log.debug(
diff --git a/docs/apache-airflow/howto/set-up-database.rst 
b/docs/apache-airflow/howto/set-up-database.rst
index 870c9edfb2..d9cf82b756 100644
--- a/docs/apache-airflow/howto/set-up-database.rst
+++ b/docs/apache-airflow/howto/set-up-database.rst
@@ -217,7 +217,7 @@ If you use a current Postgres user with custom search_path, 
search_path can be c
 
    ALTER USER airflow_user SET search_path = public;
 
-For more information regarding setup of the PostgreSQL connection, see 
`PostgreSQL dialect 
<https://docs.sqlalchemy.org/en/13/dialects/postgresql.html>`__ in SQLAlchemy 
documentation.
+For more information regarding setup of the PostgreSQL connection, see 
`PostgreSQL dialect 
<https://docs.sqlalchemy.org/en/14/dialects/postgresql.html>`__ in SQLAlchemy 
documentation.
 
 .. note::
 
@@ -311,7 +311,7 @@ The connection string in this case should look like:
 
    mysql+mysqlconnector://<user>:<password>@<host>[:<port>]/<dbname>
 
-If you want to use other drivers visit the `MySQL Dialect 
<https://docs.sqlalchemy.org/en/13/dialects/mysql.html>`__  in SQLAlchemy 
documentation for more information regarding download
+If you want to use other drivers visit the `MySQL Dialect 
<https://docs.sqlalchemy.org/en/14/dialects/mysql.html>`__  in SQLAlchemy 
documentation for more information regarding download
 and setup of the SqlAlchemy connection.
 
 In addition, you also should pay particular attention to MySQL's encoding. 
Although the ``utf8mb4`` character set is more and more popular for MySQL 
(actually, ``utf8mb4`` becomes default character set in MySQL8.0), using the 
``utf8mb4`` encoding requires additional setting in Airflow 2+ (See more 
details in `#7570 <https://github.com/apache/airflow/pull/7570>`__.). If you 
use ``utf8mb4`` as character set, you should also set 
``sql_engine_collation_for_ids=utf8mb3_bin``.

Reply via email to