well, the story is that i am developing sql package for my class libraries which is exactly same API as java 1.5 so if someone been coding in java they will have no probs in using this library for db stuff. everything is done, i am just working on field size. the java doc for the method setMaxFieldSize() says that the rest of the data in the field is "silently dropped". this of course i can do on php side using substr(). but there is nothing i can do qith queries, as this is a class library.
but i was hoping something to be done on the mysql side of things.
there is also a java implementation of sql package by MySQL guys, a jdk driver. i have looked in that source, but they have just dummy implementation for this feature. ie. does nothing.
if interested you can try it here:
http://www.phpobject.com