Kaydet (Commit) fe866ade authored tarafından Ocke Janssen's avatar Ocke Janssen
...@@ -894,12 +894,14 @@ void BibDataManager::InsertFields(const Reference< XFormComponent > & _rxGrid) ...@@ -894,12 +894,14 @@ void BibDataManager::InsertFields(const Reference< XFormComponent > & _rxGrid)
case DataType::BINARY: case DataType::BINARY:
case DataType::VARBINARY: case DataType::VARBINARY:
case DataType::LONGVARBINARY: case DataType::LONGVARBINARY:
case DataType::BLOB:
sCurrentModelType = C2U("TextField"); sCurrentModelType = C2U("TextField");
break; break;
case DataType::VARCHAR: case DataType::VARCHAR:
case DataType::LONGVARCHAR: case DataType::LONGVARCHAR:
case DataType::CHAR: case DataType::CHAR:
case DataType::CLOB:
bFormattedIsNumeric = sal_False; bFormattedIsNumeric = sal_False;
// _NO_ break ! // _NO_ break !
default: default:
......
...@@ -2217,7 +2217,7 @@ sal_Bool OBoundControlModel::approveDbColumnType(sal_Int32 _nColumnType) ...@@ -2217,7 +2217,7 @@ sal_Bool OBoundControlModel::approveDbColumnType(sal_Int32 _nColumnType)
|| (_nColumnType == DataType::LONGVARBINARY) || (_nColumnType == DataType::OTHER) || (_nColumnType == DataType::LONGVARBINARY) || (_nColumnType == DataType::OTHER)
|| (_nColumnType == DataType::OBJECT) || (_nColumnType == DataType::DISTINCT) || (_nColumnType == DataType::OBJECT) || (_nColumnType == DataType::DISTINCT)
|| (_nColumnType == DataType::STRUCT) || (_nColumnType == DataType::ARRAY) || (_nColumnType == DataType::STRUCT) || (_nColumnType == DataType::ARRAY)
|| (_nColumnType == DataType::BLOB) || (_nColumnType == DataType::CLOB) || (_nColumnType == DataType::BLOB) /*|| (_nColumnType == DataType::CLOB)*/
|| (_nColumnType == DataType::REF) || (_nColumnType == DataType::SQLNULL)) || (_nColumnType == DataType::REF) || (_nColumnType == DataType::SQLNULL))
return sal_False; return sal_False;
...@@ -2553,7 +2553,7 @@ void OBoundControlModel::reset() throw (RuntimeException) ...@@ -2553,7 +2553,7 @@ void OBoundControlModel::reset() throw (RuntimeException)
|| ( nFieldType == DataType::LONGVARBINARY ) || ( nFieldType == DataType::LONGVARBINARY )
|| ( nFieldType == DataType::OBJECT ) || ( nFieldType == DataType::OBJECT )
|| ( nFieldType == DataType::BLOB ) || ( nFieldType == DataType::BLOB )
|| ( nFieldType == DataType::CLOB ) /*|| ( nFieldType == DataType::CLOB )*/
) )
m_xColumn->getBinaryStream(); m_xColumn->getBinaryStream();
else else
......
...@@ -115,6 +115,7 @@ namespace ...@@ -115,6 +115,7 @@ namespace
|| ( _nFieldType == DataType::OBJECT ) || ( _nFieldType == DataType::OBJECT )
|| ( _nFieldType == DataType::BLOB ) || ( _nFieldType == DataType::BLOB )
|| ( _nFieldType == DataType::LONGVARCHAR ) || ( _nFieldType == DataType::LONGVARCHAR )
|| ( _nFieldType == DataType::CLOB )
) )
return ImageStoreBinary; return ImageStoreBinary;
......
...@@ -592,18 +592,21 @@ uno::Reference< lang::XMultiServiceFactory > OWriteStream_Impl::GetServiceFactor ...@@ -592,18 +592,21 @@ uno::Reference< lang::XMultiServiceFactory > OWriteStream_Impl::GetServiceFactor
if ( aData.getLength() > nRead ) if ( aData.getLength() > nRead )
aData.realloc( nRead ); aData.realloc( nRead );
if ( nRead && nRead <= MAX_STORCACHE_SIZE ) if ( nRead <= MAX_STORCACHE_SIZE )
{ {
uno::Reference< io::XStream > xCacheStream = CreateMemoryStream( GetServiceFactory() ); uno::Reference< io::XStream > xCacheStream = CreateMemoryStream( GetServiceFactory() );
OSL_ENSURE( xCacheStream.is(), "If the stream can not be created an exception must be thrown!\n" ); OSL_ENSURE( xCacheStream.is(), "If the stream can not be created an exception must be thrown!\n" );
uno::Reference< io::XOutputStream > xOutStream( xCacheStream->getOutputStream(), uno::UNO_SET_THROW ); if ( nRead )
xOutStream->writeBytes( aData ); {
uno::Reference< io::XOutputStream > xOutStream( xCacheStream->getOutputStream(), uno::UNO_SET_THROW );
xOutStream->writeBytes( aData );
}
m_xCacheSeek.set( xCacheStream, uno::UNO_QUERY_THROW ); m_xCacheSeek.set( xCacheStream, uno::UNO_QUERY_THROW );
m_xCacheStream = xCacheStream; m_xCacheStream = xCacheStream;
m_xCacheSeek->seek( 0 ); m_xCacheSeek->seek( 0 );
} }
else if ( nRead && !m_aTempURL.getLength() ) else if ( !m_aTempURL.getLength() )
{ {
m_aTempURL = GetNewTempFileURL( GetServiceFactory() ); m_aTempURL = GetNewTempFileURL( GetServiceFactory() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment