[freetds] the max length of a column?
Frediano Ziglio
freddy77 at gmail.com
Tue Jul 6 04:17:41 EDT 2010
http://www.freetds.org/userguide/choosingtdsprotocol.htm
2010/7/6 Difei Qi <fredericqi at gmail.com>:
> hello,in my database I have a column with the type varchar(500),
> but when I used as followings to get the length of the column , I get 255 ?
> pcol->name=dbcolname(m_pdbprocess,j);
> pcol->type=dbcoltype(m_pdbprocess,j);
> pcol->size=dbcollen(m_pdbprocess,j); -----this is just 255? while I
> has a 500 length column.
>
> I tried more length column such as varchar(1000), but dbcollen only turns
> 255 to me,why?
> And how can I fixed the bug? Thanks~
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
More information about the FreeTDS
mailing list