Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MySql Longtext to Memo
Message
From
11/08/2009 10:47:04
 
 
To
10/08/2009 17:17:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01417130
Message ID:
01417317
Views:
35
>Our experience is that getting a Memo field for any of the TEXT types depends on the length of the longest field returned. If it is > 254 you will get a Memo field, otherwise you get a Character field with an unpredictable (depends on data returned) length.
>
>The exception to this is that VARCHAR(>= 255) always returns a Memo field, regardless of the actual length of the data. Consequently, we've made all the memo fields VARCHAR() and check the length prior to saving to make sure we don't get a "Length exceeded" error.
>
>I can't be sure this applies to your environment as well, just hope it helps
>
>.......Rich

Rich,

Thanks for the reply.

I started playing with the flags on the MySql ODBC connection I had made to the database. I set the flag 'limit column size to signed 32-bit range' and this seemed to work. Memo fields with large amounts of text are being retrieved properly now.

Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform