Tag: cws_dev300_dba30c User: oj Date: 2008-05-08 12:55:53+0000 Modified: dba/connectivity/source/drivers/mysql/YTable.cxx dba/connectivity/source/drivers/mysql/YTables.cxx
Log: #i64472# use of create pattern File Changes: Directory: /dba/connectivity/source/drivers/mysql/ ================================================== File [changed]: YTable.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mysql/YTable.cxx?r1=1.12.10.1&r2=1.12.10.2 Delta lines: +9 -3 ------------------- --- YTable.cxx 2008-05-06 11:43:10+0000 1.12.10.1 +++ YTable.cxx 2008-05-08 12:55:51+0000 1.12.10.2 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: YTable.cxx,v $ - * $Revision: 1.12.10.1 $ + * $Revision: 1.12.10.2 $ * * This file is part of OpenOffice.org. * @@ -284,7 +284,7 @@ const ::rtl::OUString sQuote = getMetaData()->getIdentifierQuoteString( ); sSql += ::dbtools::quoteName(sQuote,colName); sSql += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" ")); - sSql += ::dbtools::createStandardColumnPart(descriptor,getConnection(),true); + sSql += ::dbtools::createStandardColumnPart(descriptor,getConnection(),getTypeCreatePattern()); executeStatement(sSql); } m_pColumns->refresh(); @@ -313,10 +313,16 @@ ::comphelper::copyProperties(_xDescriptor,xProp); xProp->setPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE),makeAny(nNewType)); - sSql += ::dbtools::createStandardColumnPart(xProp,getConnection(),true); + sSql += ::dbtools::createStandardColumnPart(xProp,getConnection(),getTypeCreatePattern()); executeStatement(sSql); } // ----------------------------------------------------------------------------- +::rtl::OUString OMySQLTable::getTypeCreatePattern() const +{ + static const ::rtl::OUString s_sCreatePattern(RTL_CONSTASCII_USTRINGPARAM("(M,D)")); + return s_sCreatePattern; +} +// ----------------------------------------------------------------------------- void OMySQLTable::alterDefaultValue(const ::rtl::OUString& _sNewDefault,const ::rtl::OUString& _rColName) { ::rtl::OUString sSql = getAlterTableColumnPart(); File [changed]: YTables.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mysql/YTables.cxx?r1=1.12.10.1&r2=1.12.10.2 Delta lines: +3 -2 ------------------- --- YTables.cxx 2008-05-06 11:43:10+0000 1.12.10.1 +++ YTables.cxx 2008-05-08 12:55:51+0000 1.12.10.2 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: YTables.cxx,v $ - * $Revision: 1.12.10.1 $ + * $Revision: 1.12.10.2 $ * * This file is part of OpenOffice.org. * @@ -190,7 +190,8 @@ void OTables::createTable( const Reference< XPropertySet >& descriptor ) { const Reference< XConnection > xConnection = static_cast<OMySQLCatalog&>(m_rParent).getConnection(); - const ::rtl::OUString aSql = ::dbtools::createSqlCreateTableStatement(descriptor,xConnection,true); + static const ::rtl::OUString s_sCreatePattern(RTL_CONSTASCII_USTRINGPARAM("(M,D)")); + const ::rtl::OUString aSql = ::dbtools::createSqlCreateTableStatement(descriptor,xConnection,s_sCreatePattern); Reference< XStatement > xStmt = xConnection->createStatement( ); if ( xStmt.is() ) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
