taioba has asked for the wisdom of the Perl Monks concerning the following question:
http://www.perlmonks.org/?node=Cannot%20insert%20into%20MS%20Access%20Memo%20field%20with%20DBI
I used to be able to insert info in memo fields in my Access database by binding the data using DBI::SQL_LONGVARCHAR. However, every since I upgraded DBD-ODBC to version 1.21, everytime I try to do that I get:
DBD::ODBC::st bind_param failed: Microsoft ODBC Microsoft Access Driver Invalid precision value (SQL-HY104)
If I use the column_info method to get the data type of the memo field, I get LONGCHAR instead of LONGVARCHAR. That does not work either, and I get the same message. Interesting enough, I do not have this problem if the data been inserted is smaller than 255 characters, even if it is a memo field. I also can insert data without a problem in INTEGER or VARCHAR fields. Any ideas?
Thanks for your ever wise and kind guidance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD_ODBC 1.21 does not accept DBI::SQL_LONGVARCHAR as data type anymore?
by mje (Curate) on Jun 01, 2009 at 10:22 UTC | |
by mje (Curate) on Jun 02, 2009 at 08:24 UTC | |
by mje (Curate) on Jun 02, 2009 at 16:02 UTC | |
|
Re: DBD_ODBC 1.21 does not accept DBI::SQL_LONGVARCHAR as data type anymore?
by Anonymous Monk on Jun 01, 2009 at 09:06 UTC | |
by taioba (Acolyte) on Jun 01, 2009 at 16:52 UTC | |
by mje (Curate) on Jun 01, 2009 at 19:59 UTC |