guzzijones / pyodbc

Automatically exported from code.google.com/p/pyodbc
Other
0 stars 0 forks source link

Crash when Null is cast as decimal #402

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
import pyodbc

    conn = pyodbc.connect("dsn=ms_2005;UID=scott;PWD=tiger")

    cursor = conn.cursor()
    cursor.execute("select cast(null as decimal)")
    print cursor.fetchall()

What version of the product are you using? On what operating system?
Run on Red Hat Enterprise Linux 6

Please provide any additional information below.

Original issue reported on code.google.com by spradha...@gmail.com on 22 Jul 2015 at 8:53

GoogleCodeExporter commented 8 years ago
FreeTDS64 Driver
TDS Version 8.0

Edit to original issue:

conn = pyodbc.connect("DRIVER={FreeTDS64};TDS_Version=8.0;...")

Original comment by spradha...@gmail.com on 22 Jul 2015 at 8:56