[freetds] Problems with UnixODBC and FreeTDS

Frediano Ziglio freddy77 at gmail.com
Sat Jul 7 13:57:38 EDT 2007


Il giorno ven, 06/07/2007 alle 20.57 -0400, James K. Lowden ha scritto:
> Frediano Ziglio wrote:
> > > These are the last 2 lines of the freeTDS log when there is an error:
> > >
> > > odbc.c:4396:SQLGetData(0x844d548, 12, 1, 0xb6df3608, 2048, 0xb6df3600)
> > > odbc.c:4396:SQLGetData(0x844d548, 12, 1, 0xb76728ab, -2046,
> > > 0xb6df3600)
> > 
> > 
> > in src/odbc/odbc.c (SQLGetData):
> > 
> > #ifdef TDS_NO_DM 	if (cbValueMax < 0) {	
> > #odbc_errs_add(&stmt->errs,
> > "HY090", NULL); 		ODBC_RETURN(stmt, SQL_ERROR); 	}#endif
> > 
> > remove #if/#endif if row and should not core... but caller should
> > still not call us in such way...
> 
> Freddy, why wrap error checking in #ifdef TDS_NO_DM?  Seems to me it's
> *always* better to check inputs for validity.  
> 

This parameter should be checked by DM... removed.
I still don't understand why 0.63 didn't core...

freddy77




More information about the FreeTDS mailing list