mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-04 08:04:45 +00:00
CONPY-205: Added error constants
Error code constants are now defined in constants/ERR. The file ERR.py is generated by helper/create_errconst.py script, please don't edit it.
This commit is contained in:
@ -1278,6 +1278,15 @@ class TestCursor(unittest.TestCase):
|
||||
|
||||
cursor.close()
|
||||
|
||||
def test_conpy203(self):
|
||||
conn= create_connection()
|
||||
cursor= conn.cursor()
|
||||
|
||||
try:
|
||||
cursor.execute("SELECT")
|
||||
except mariadb.ProgrammingError as err:
|
||||
self.assertEqual(err.errno, ERR.ER_PARSE_ERROR)
|
||||
|
||||
def test_conpy91(self):
|
||||
with create_connection() as connection:
|
||||
with connection.cursor() as cursor:
|
||||
|
Reference in New Issue
Block a user