cid#1636677 Uninitialized scalar field
[LibreOffice.git] / connectivity / source / drivers / firebird / Column.cxx
blob5838456abaf7d32bd0f9f4a1321aabefa44416a7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include "Column.hxx"
12 #include <TConnection.hxx>
14 using namespace connectivity;
15 using namespace connectivity::firebird;
16 using namespace connectivity::sdbcx;
18 Column::Column()
19 : OColumn( true ) // case sensitive
21 construct();
24 void Column::construct()
26 m_sAutoIncrement = "GENERATED BY DEFAULT AS IDENTITY";
27 registerProperty(OMetaConnection::getPropMap().getNameByIndex(
28 PROPERTY_ID_AUTOINCREMENTCREATION),
29 PROPERTY_ID_AUTOINCREMENTCREATION,
31 &m_sAutoIncrement,
32 cppu::UnoType<decltype(m_sAutoIncrement)>::get()
36 ::cppu::IPropertyArrayHelper* Column::createArrayHelper( sal_Int32 /*_nId*/ ) const
38 return doCreateArrayHelper();
41 ::cppu::IPropertyArrayHelper & SAL_CALL Column::getInfoHelper()
43 return *Column_PROP::getArrayHelper(isNew() ? 1 : 0);
46 css::uno::Sequence< OUString > SAL_CALL Column::getSupportedServiceNames( )
48 return { u"com.sun.star.sdbc.Firebird"_ustr };
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */