1 /************************************************************************* 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * 4 * Copyright 2008 by Sun Microsystems, Inc. 5 * 6 * OpenOffice.org - a multi-platform office productivity suite 7 * 8 * $RCSfile: mysqlc_types.hxx,v $ 9 * 10 * $Revision: 1.1.2.2 $ 11 * 12 * This file is part of OpenOffice.org. 13 * 14 * OpenOffice.org is free software: you can redistribute it and/or modify 15 * it under the terms of the GNU Lesser General Public License version 3 16 * only, as published by the Free Software Foundation. 17 * 18 * OpenOffice.org is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU Lesser General Public License version 3 for more details 22 * (a copy is included in the LICENSE file that accompanied this code). 23 * 24 * You should have received a copy of the GNU Lesser General Public License 25 * version 3 along with OpenOffice.org. If not, see 26 * <http://www.openoffice.org/license.html> 27 * for a copy of the LGPLv3 License. 28 ************************************************************************/ 29 30 #ifndef MYSQLC_TYPES_HXX 31 #define MYSQLC_TYPES_HXX 32 33 struct TypeInfoDef { 34 const char *typeName; 35 sal_Int32 dataType; 36 sal_Int32 precision; 37 const char *literalPrefix; 38 const char *literalSuffix; 39 const char *createParams; 40 sal_Int16 nullable; 41 sal_Bool caseSensitive; 42 sal_Int16 searchable; 43 sal_Bool isUnsigned; 44 sal_Bool fixedPrecScale; 45 sal_Bool autoIncrement; 46 const char *localTypeName; 47 sal_Int32 minScale; 48 sal_Int32 maxScale; 49 sal_Int32 sqlDataType; 50 sal_Int32 sqlDateTimeSub; 51 sal_Int32 numPrecRadix; 52 }; 53 54 extern TypeInfoDef mysqlc_types[]; 55 56 #endif /* MYSQLC_TYPES_HXX */ 57