Permalink
Browse files

add field alias test case

  • Loading branch information...
1 parent 53fe042 commit 577db57884603bec4350f8180c56de4cfbf807ac @nakagami committed Jun 25, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 firebirdsql/tests.py
View
@@ -56,6 +56,11 @@ def debug_print(msg):
assert cur.fetchone() is None
cur.close()
+ cur = conn.cursor()
+ cur.execute("select a as alias_name from foo")
+ assert cur.description[0][0] == 'ALIAS_NAME'
+ cur.close()
+
conn.cursor().execute("insert into foo(a, b, c) values (1, 'a', 'b')")
conn.cursor().execute("""insert into foo(a, b, c, e, g, i, j)
values (2, 'A', 'B', '1999-01-25', '00:00:01', 0.1, 0.1)""")

0 comments on commit 577db57

Please sign in to comment.