xref: /trunk/main/mysqlc/source/mysqlc_types.hxx (revision 079eb577)
1*079eb577SAndrew Rist /**************************************************************
2*079eb577SAndrew Rist  *
3*079eb577SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*079eb577SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*079eb577SAndrew Rist  * distributed with this work for additional information
6*079eb577SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*079eb577SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*079eb577SAndrew Rist  * "License"); you may not use this file except in compliance
9*079eb577SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*079eb577SAndrew Rist  *
11*079eb577SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*079eb577SAndrew Rist  *
13*079eb577SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*079eb577SAndrew Rist  * software distributed under the License is distributed on an
15*079eb577SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*079eb577SAndrew Rist  * KIND, either express or implied.  See the License for the
17*079eb577SAndrew Rist  * specific language governing permissions and limitations
18*079eb577SAndrew Rist  * under the License.
19*079eb577SAndrew Rist  *
20*079eb577SAndrew Rist  *************************************************************/
21cdf0e10cSrcweir 
22cdf0e10cSrcweir #ifndef MYSQLC_TYPES_HXX
23cdf0e10cSrcweir #define MYSQLC_TYPES_HXX
24cdf0e10cSrcweir 
25cdf0e10cSrcweir struct TypeInfoDef {
26cdf0e10cSrcweir     const char *typeName;
27cdf0e10cSrcweir     sal_Int32 dataType;
28cdf0e10cSrcweir     sal_Int32 precision;
29cdf0e10cSrcweir     const char *literalPrefix;
30cdf0e10cSrcweir     const char *literalSuffix;
31cdf0e10cSrcweir     const char *createParams;
32cdf0e10cSrcweir     sal_Int16 nullable;
33cdf0e10cSrcweir     sal_Bool caseSensitive;
34cdf0e10cSrcweir     sal_Int16 searchable;
35cdf0e10cSrcweir     sal_Bool isUnsigned;
36cdf0e10cSrcweir     sal_Bool fixedPrecScale;
37cdf0e10cSrcweir     sal_Bool autoIncrement;
38cdf0e10cSrcweir     const char *localTypeName;
39cdf0e10cSrcweir     sal_Int32 minScale;
40cdf0e10cSrcweir     sal_Int32 maxScale;
41cdf0e10cSrcweir 	sal_Int32 sqlDataType;
42cdf0e10cSrcweir 	sal_Int32 sqlDateTimeSub;
43cdf0e10cSrcweir     sal_Int32 numPrecRadix;
44cdf0e10cSrcweir };
45cdf0e10cSrcweir 
46cdf0e10cSrcweir extern TypeInfoDef mysqlc_types[];
47cdf0e10cSrcweir 
48cdf0e10cSrcweir #endif /* MYSQLC_TYPES_HXX */
49