|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I have written a program in VB which connects to a MySQL via MyODBC/ADO. My problem is that the textfields are limited to the szie of the longest entity within the recordset.
if the recordset has the following 2 dataentries... field: id, text 1, abc 2, abcde ...then rec("text")= definedsize is 5 if the recordset has only dataentry 1 then rec("text") definedsize is 3???? In the MySQL Database (3.23.37) I have set text to VARCHAR(255). Can anybody help me with this problem? Thanks, Chris |
|
#2
|
|||
|
|||
|
Hmmmm,
Sounds much like a MyODBC bug to me. Hurl an email to the MySQL guys and see what they have to say about it. There might be a patch for it. |
|
#3
|
|||
|
|||
|
...I found the bug. I have not set the options of the ODBC driver properly. If you create a connection without any options then ADO allows as maximum entry size of a field the size of the longest entry in that field in the record set - not the size spezified in MySQL.
With the right options everything is back to "normal". Chris |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > VB/MySQL Problem with fieldsize |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|