jiangwen365 / pypyodbc

A pure Python Cross Platform ODBC interface module
MIT License
179 stars 74 forks source link

String value of 250 characters causes error #103

Open elghali opened 4 years ago

elghali commented 4 years ago

Hello, whenever trying to execute an INSERT statement with a text of 250 characters I get this error:

line 1605, in execute param_buffer.value = c_char_buf ValueError: string too long

currently I truncated the text to 200 characters, but is there a better solution for this?