Skip to content

Commit dce65e9

Browse files
committed
add a reproductive example as test case
1 parent ccfe061 commit dce65e9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

singlestoredb/tests/test_basics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,11 @@ def _test_MySQLdb(self):
977977
for a, b in zip(s2_out, mydb_out):
978978
assert a == b, (a, b)
979979

980+
def test_long_string(self):
981+
string = 'a' * 48
982+
self.cur.execute(f"SELECT 1 AS column_1, '{string}' AS column_2")
983+
self.assertEqual((1, string), self.cur.fetchone())
984+
980985

981986
if __name__ == '__main__':
982987
import nose2

0 commit comments

Comments
 (0)