long text field truncated at 1023 chars

68 views
Skip to first unread message

ce...@aliandcedar.com

unread,
Aug 29, 2012, 4:44:06 PM8/29/12
to pyo...@googlegroups.com
pyodbc 3.06 talking to filemaker ODBC driver 11.3.81

I have a text field that contains a string >7000 characters. When I do something like:

curs.execute("SELECT my_text_field FROM test_table WHERE test_table.id = 1")
 
for result in curs:
    print result


The result I get is just what I'm looking for except truncated to the first 1023 characters!

I'm sure the ODBC driver and DNS are fine because I can successfully retrieve the entire field using php and odb_connect. To me, that means it must be a pyodbc issue. Any suggestions?

Thanks!


robin.t...@googlemail.com

unread,
Oct 20, 2014, 1:31:55 PM10/20/14
to pyo...@googlegroups.com
hi, did you manage to solve this? tried casting to nvarchar(max) but ... well here I am still
cheers
Reply all
Reply to author
Forward
0 new messages