1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_CONNECTIVITY_STANDARDSQLSTATE_HXX
21 #define INCLUDED_CONNECTIVITY_STANDARDSQLSTATE_HXX
28 /** standard SQLStates to be used with an SQLException
30 Extend this list whenever you need a new state ...
32 @see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc_error_codes.asp
34 enum class StandardSQLState
36 WRONG_PARAMETER_NUMBER
, // 07001
37 INVALID_DESCRIPTOR_INDEX
, // 07009
38 UNABLE_TO_CONNECT
, // 08001
39 NUMERIC_OUT_OF_RANGE
, // 22003
40 INVALID_DATE_TIME
, // 22007
41 INVALID_CURSOR_STATE
, // 24000
42 TABLE_OR_VIEW_EXISTS
, // 42S01
43 TABLE_OR_VIEW_NOT_FOUND
, // 42S02
44 INDEX_ESISTS
, // 42S11
45 INDEX_NOT_FOUND
, // 42S12
46 COLUMN_EXISTS
, // 42S21
47 COLUMN_NOT_FOUND
, // 42S22
48 GENERAL_ERROR
, // HY000
49 INVALID_SQL_DATA_TYPE
, // HY004
50 OPERATION_CANCELED
, // HY008
51 FUNCTION_SEQUENCE_ERROR
, // HY010
52 INVALID_CURSOR_POSITION
, // HY109
53 INVALID_BOOKMARK_VALUE
, // HY111
54 FEATURE_NOT_IMPLEMENTED
, // HYC00
55 FUNCTION_NOT_SUPPORTED
, // IM001
56 CONNECTION_DOES_NOT_EXIST
, // 08003
58 ERROR_UNSPECIFIED
= SAL_MAX_ENUM
// special value indicating that an SQLState is not to be specified
62 } // namespace dbtools
65 #endif // INCLUDED_CONNECTIVITY_STANDARDSQLSTATE_HXX
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */