Tag: cws_src680_sdblogging User: fs Date: 2007/04/12 04:21:38 Modified: dba/connectivity/source/drivers/jdbc/PreparedStatement.cxx
Log: #i10000# implement various convertLogArgToString overloads in ConnectionLog.cxx File Changes: Directory: /dba/connectivity/source/drivers/jdbc/ ================================================= File [changed]: PreparedStatement.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/jdbc/PreparedStatement.cxx?r1=1.17.84.4&r2=1.17.84.5 Delta lines: +2 -33 -------------------- --- PreparedStatement.cxx 12 Apr 2007 10:15:56 -0000 1.17.84.4 +++ PreparedStatement.cxx 12 Apr 2007 11:21:34 -0000 1.17.84.5 @@ -4,9 +4,9 @@ * * $RCSfile: PreparedStatement.cxx,v $ * - * $Revision: 1.17.84.4 $ + * $Revision: 1.17.84.5 $ * - * last change: $Author: fs $ $Date: 2007/04/12 10:15:56 $ + * last change: $Author: fs $ $Date: 2007/04/12 11:21:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -291,37 +291,6 @@ } //t.pEnv } // ------------------------------------------------------------------------- - -namespace comphelper { namespace log { namespace convert -{ - ::rtl::OUString convertLogArgToString( const ::com::sun::star::util::Date& _rDate ) - { - char buffer[ 30 ]; - const size_t buffer_size = sizeof( buffer ); - snprintf( buffer, buffer_size, "%04i-%02i-%02i", - (int)_rDate.Year, (int)_rDate.Month, (int)_rDate.Day ); - return ::rtl::OUString::createFromAscii( buffer ); - } - - ::rtl::OUString convertLogArgToString( const ::com::sun::star::util::Time& _rTime ) - { - char buffer[ 30 ]; - const size_t buffer_size = sizeof( buffer ); - snprintf( buffer, buffer_size, "%02i:%02i:%02i.%02i", - (int)_rTime.Hours, (int)_rTime.Minutes, (int)_rTime.Seconds, (int)_rTime.HundredthSeconds ); - return ::rtl::OUString::createFromAscii( buffer ); - } - - ::rtl::OUString convertLogArgToString( const ::com::sun::star::util::DateTime& _rDateTime ) - { - char buffer[ 30 ]; - const size_t buffer_size = sizeof( buffer ); - snprintf( buffer, buffer_size, "%04i-%02i-%02i %02i:%02i:%02i.%02i", - (int)_rDateTime.Year, (int)_rDateTime.Month, (int)_rDateTime.Day, - (int)_rDateTime.Hours, (int)_rDateTime.Minutes, (int)_rDateTime.Seconds, (int)_rDateTime.HundredthSeconds ); - return ::rtl::OUString::createFromAscii( buffer ); - } -} } } void SAL_CALL java_sql_PreparedStatement::setDate( sal_Int32 parameterIndex, const ::com::sun::star::util::Date& x ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
