how to map text jdbcType for sybase

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how to map text jdbcType for sybase

lovelifestar
i have a text type column in sybase, but no text jdbcType in mybatis.

if i config varchar jdbcType in map xml, when data length is very
long, whether lose redundant data.

in this case how can i do ? please help!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to map text jdbcType for sybase

Clinton Begin
Administrator
I believe it should be  LONGVARCHAR.

Cheers,
Clinton 

On Thu, Mar 15, 2012 at 9:16 PM, lovelifestar <[hidden email]> wrote:
i have a text type column in sybase, but no text jdbcType in mybatis.

if i config varchar jdbcType in map xml, when data length is very
long, whether lose redundant data.

in this case how can i do ? please help!

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to map text jdbcType for sybase

c c-2
you mean  clob??
mybatis support !

2012/3/19 Clinton Begin <[hidden email]>
I believe it should be  LONGVARCHAR.

Cheers,
Clinton 


On Thu, Mar 15, 2012 at 9:16 PM, lovelifestar <[hidden email]> wrote:
i have a text type column in sybase, but no text jdbcType in mybatis.

if i config varchar jdbcType in map xml, when data length is very
long, whether lose redundant data.

in this case how can i do ? please help!


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to map text jdbcType for sybase

lovelifestar
In reply to this post by Clinton Begin
i map VARCHAR type in mybatis to text type in sybase without any problems.

i believe LONGVARCHAR is effective too.

thank u for your help

在 2012年3月19日星期一UTC+8上午1时07分22秒,Clinton Begin写道:
I believe it should be  LONGVARCHAR.

Cheers,
Clinton 

On Thu, Mar 15, 2012 at 9:16 PM, lovelifestar <[hidden email]> wrote:
i have a text type column in sybase, but no text jdbcType in mybatis.

if i config varchar jdbcType in map xml, when data length is very
long, whether lose redundant data.

in this case how can i do ? please help!

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to map text jdbcType for sybase

lovelifestar
In reply to this post by c c-2

ye, mybatis support clob type, but sybatis not support

i map varchar type in mybatis to text type in sybase without any problems

thank u

在 2012年3月19日星期一UTC+8上午10时26分42秒,c c写道:
you mean  clob??
mybatis support !

2012/3/19 Clinton Begin <[hidden email]>
I believe it should be  LONGVARCHAR.

Cheers,
Clinton 


On Thu, Mar 15, 2012 at 9:16 PM, lovelifestar <[hidden email]> wrote:
i have a text type column in sybase, but no text jdbcType in mybatis.

if i config varchar jdbcType in map xml, when data length is very
long, whether lose redundant data.

in this case how can i do ? please help!


Loading...