From: Carlos G.A. <car...@ho...> - 2002-08-09 19:20:56
|
Hello: Little correction instead of: int nullable = resultSet->getInt(7); if ( nullable ) resultSet->setValue( 7, "YES" ); else resultSet->setValue( 7, "NO" ); use int isGrantable = resultSet->getInt(7); if ( isGrantable ) resultSet->setValue( 7, "YES" ); else resultSet->setValue( 7, "NO" ); Best regards Carlos Guzmán Álvarez >From: "Carlos G.A." <car...@ho...> >Reply-To: fir...@li... >To: fir...@li..., pr...@ib... >Subject: [Firebird-odbc-devel] Little modifications for the implementation >of SQLTablePrivileges >Date: Fri, 09 Aug 2002 17:33:50 +0200 > >Hello: > >Little modifications for the implementation of SQLTablePrivileges: > >IscTablePrivileges.cpp > >IscTablePrivilegesResultSet::next() > >Add this before return true; > > int nullable = resultSet->getInt(7); > if ( nullable ) > resultSet->setValue( 7, "YES" ); > else > resultSet->setValue( 7, "NO" ); > > >and add this before const char *privilege = resultSet->getString(6);: > > trimBlanks(3); > trimBlanks(4); > trimBlanks(5); > > >IscTablePrivileges.h > >Change: > >#endif // >!defined(AFX_ISCTABLESRESULTSET_H__6C3E2AB7_229F_11D4_98DF_0000C01D2301__INCLUDED_) > >for > >#endif // >!defined(AFX_ISCTABLEPRIVILEGESRESULTSET_H__6C3E2AB7_229F_11D4_98DF_0000C01D2301__INCLUDED_) > > >Best Regards >Carlos Guzmán Álvarez >Vigo-España > >_________________________________________________________________ >Únase al mayor servicio mundial de correo electrónico: >http://www.hotmail.com/es > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Firebird-odbc-devel mailing list >Fir...@li... >https://lists.sourceforge.net/lists/listinfo/firebird-odbc-devel Un saludo Carlos Guzmán Álvarez Vigo-España "No tengo dones especiales.Sólo soy apasionadamente curioso" Albert Einstein, científico. _________________________________________________________________ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx |