Tuesday, February 17, 2009

text & jdbc & sybase

If you see the following error: "A wrong datastream has been sent to the server. The server was expecting token 236 but got the token 33. This is an internal error."

Then it means that you haven't sepcified the correct jdbc type for a column. If you use iBatis, the proper insert statement should look something like:

<insert>
INSERT INTO users (login_name, description)
VALUES (#loginName#, #description:LONGVARCHAR#)
</insert>

1 comment: