Apply upstream fix for bpo-39652
This commit is contained in:
parent
2d4a1c3df2
commit
b811276962
4 changed files with 26 additions and 11 deletions
|
|
@ -275,13 +275,13 @@ class ColNamesTests(unittest.TestCase):
|
|||
|
||||
def CheckColName(self):
|
||||
self.cur.execute("insert into test(x) values (?)", ("xxx",))
|
||||
self.cur.execute('select x as "x [bar]" from test')
|
||||
self.cur.execute('select x as "x y [bar]" from test')
|
||||
val = self.cur.fetchone()[0]
|
||||
self.assertEqual(val, "<xxx>")
|
||||
|
||||
# Check if the stripping of colnames works. Everything after the first
|
||||
# whitespace should be stripped.
|
||||
self.assertEqual(self.cur.description[0][0], "x")
|
||||
self.assertEqual(self.cur.description[0][0], "x y")
|
||||
|
||||
def CheckCaseInConverterName(self):
|
||||
self.cur.execute("select 'other' as \"x [b1b1]\"")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue