diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-15 10:02:26 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-08-19 09:12:03 +0000 |
commit | acd9f66f2834c16650d37109650ed47e491a0241 (patch) | |
tree | 29ed3b58f9c93246590e57cbb27def2437ce3d2f /include/connectivity | |
parent | bd507a0d093b7d5239992440a40d0a7453b38207 (diff) |
Split type-description out of createStandardColumnPart.
createStandardColumnPart returns a string that is usable in table creation,
the type descriptor (e.g. CHAR(N)) is also useful in column-type altering
statements, hence this is split into a separate function.
This is needed primarily in the firebird driver where column-type alter
statements are in a different form to most dbs.
Change-Id: If44554f979f6dd14bf679455978f3f0b44784bf5
Reviewed-on: https://gerrit.libreoffice.org/5432
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'include/connectivity')
-rw-r--r-- | include/connectivity/dbtools.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/connectivity/dbtools.hxx b/include/connectivity/dbtools.hxx index 424237316382..8064355491ae 100644 --- a/include/connectivity/dbtools.hxx +++ b/include/connectivity/dbtools.hxx @@ -645,6 +645,22 @@ namespace dbtools OUString createStandardKeyStatement( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xConnection); + /** creates the standard sql statement for the type part of a create or alter table statement. + @param _pHelper + Allow to add special SQL constructs. + @param descriptor + The descriptor of the column. + @param _xConnection + The connection. + @param _pHelper + Allow to add special SQL constructs. + */ + OOO_DLLPUBLIC_DBTOOLS + OUString createStandardTypePart( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor + ,const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _xConnection + ,ISQLStatementHelper* _pHelper = NULL + ,const OUString& _sCreatePattern = OUString()); + /** creates the standard sql statement for the column part of a create table statement. @param _pHelper Allow to add special SQL constructs. |