From bd479ad419dce98eaed7a0affc4e1c57b3788179 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org>
Date: Thu, 14 Jan 2021 13:26:12 +0100
Subject: [PATCH] add 0004-escape-text-column-name-fixes-for-SA-v1.3.22.patch

---
 ...ext-column-name-fixes-for-SA-v1.3.22.patch | 21 +++++++++++++++++++
 debian/patches/No-privacy-breach.patch        |  6 ++++--
 debian/patches/Use-packaged-docs.patch        |  4 +++-
 debian/patches/no-crate.patch                 | 12 ++++++++++-
 debian/patches/series                         |  1 +
 5 files changed, 40 insertions(+), 4 deletions(-)
 create mode 100644 debian/patches/0004-escape-text-column-name-fixes-for-SA-v1.3.22.patch

diff --git a/debian/patches/0004-escape-text-column-name-fixes-for-SA-v1.3.22.patch b/debian/patches/0004-escape-text-column-name-fixes-for-SA-v1.3.22.patch
new file mode 100644
index 0000000..74dbc9c
--- /dev/null
+++ b/debian/patches/0004-escape-text-column-name-fixes-for-SA-v1.3.22.patch
@@ -0,0 +1,21 @@
+From: =?utf-8?q?Piotr_O=C5=BCarowski?= <piotr@debian.org>
+Date: Mon, 11 Jan 2021 15:04:35 +0100
+Subject: escape text column name - fixes for SA v1.3.22
+
+---
+ tests/test_agatesql.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_agatesql.py b/tests/test_agatesql.py
+index 9fcb3ba..e9fd52b 100644
+--- a/tests/test_agatesql.py
++++ b/tests/test_agatesql.py
+@@ -141,7 +141,7 @@ class TestSQL(agate.AgateTestCase):
+ 
+         self.assertEqual(statement.replace('\t', '  '), '''CREATE TABLE test_schema.test_table (
+   number DECIMAL(38, 3), 
+-  text VARCHAR(1) NOT NULL, 
++  `text` VARCHAR(1) NOT NULL, 
+   boolean BOOL, 
+   date DATE, 
+   datetime TIMESTAMP NULL, 
diff --git a/debian/patches/No-privacy-breach.patch b/debian/patches/No-privacy-breach.patch
index 4eba70f..7d0b3f8 100644
--- a/debian/patches/No-privacy-breach.patch
+++ b/debian/patches/No-privacy-breach.patch
@@ -3,9 +3,11 @@ Date: Wed, 15 Mar 2017 12:43:39 +0000
 Subject: No privacy breach
 
 ---
- README.rst | 20 --------------------
- 1 file changed, 20 deletions(-)
+ README.rst | 16 ----------------
+ 1 file changed, 16 deletions(-)
 
+diff --git a/README.rst b/README.rst
+index d36587a..e03d369 100644
 --- a/README.rst
 +++ b/README.rst
 @@ -1,19 +1,3 @@
diff --git a/debian/patches/Use-packaged-docs.patch b/debian/patches/Use-packaged-docs.patch
index 02c9710..6bc624a 100644
--- a/debian/patches/Use-packaged-docs.patch
+++ b/debian/patches/Use-packaged-docs.patch
@@ -6,9 +6,11 @@ Subject: Use packaged docs
  docs/conf.py | 10 ++++++++--
  1 file changed, 8 insertions(+), 2 deletions(-)
 
+diff --git a/docs/conf.py b/docs/conf.py
+index 67a300c..8c6051b 100644
 --- a/docs/conf.py
 +++ b/docs/conf.py
-@@ -29,8 +29,14 @@
+@@ -29,8 +29,14 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
  autodoc_member_order = 'bysource'
  
  intersphinx_mapping = {
diff --git a/debian/patches/no-crate.patch b/debian/patches/no-crate.patch
index 8d13e41..7eb2120 100644
--- a/debian/patches/no-crate.patch
+++ b/debian/patches/no-crate.patch
@@ -1,6 +1,16 @@
+From: Debian Python Team <team+python@tracker.debian.org>
+Date: Mon, 11 Jan 2021 15:02:59 +0100
+Subject: no-crate
+
+---
+ tests/test_agatesql.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_agatesql.py b/tests/test_agatesql.py
+index adf7311..9fcb3ba 100644
 --- a/tests/test_agatesql.py
 +++ b/tests/test_agatesql.py
-@@ -149,7 +149,7 @@
+@@ -149,7 +149,7 @@ class TestSQL(agate.AgateTestCase):
  );''')  # noqa
  
      def test_to_sql_create_statement_with_dialects(self):
diff --git a/debian/patches/series b/debian/patches/series
index b6e999d..87889da 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 Use-packaged-docs.patch
 No-privacy-breach.patch
 no-crate.patch
+0004-escape-text-column-name-fixes-for-SA-v1.3.22.patch
-- 
GitLab