Bump version to 6.4-15
[LibreOffice.git] / include / connectivity / standardsqlstate.hxx
blob2569d3a02583dbc35d273f774a3084c428e80f27
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
23 #include <sal/types.h>
25 namespace dbtools
29 /** standard SQLStates to be used with an SQLException
31 Extend this list whenever you need a new state ...
33 @see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcodbc_error_codes.asp
35 enum class StandardSQLState
37 INVALID_DESCRIPTOR_INDEX, // 07009
38 INVALID_CURSOR_STATE, // 24000
39 COLUMN_NOT_FOUND, // 42S22
40 GENERAL_ERROR, // HY000
41 INVALID_SQL_DATA_TYPE, // HY004
42 FUNCTION_SEQUENCE_ERROR, // HY010
43 INVALID_CURSOR_POSITION, // HY109
44 FEATURE_NOT_IMPLEMENTED, // HYC00
45 FUNCTION_NOT_SUPPORTED, // IM001
46 CONNECTION_DOES_NOT_EXIST, // 08003
48 ERROR_UNSPECIFIED = SAL_MAX_ENUM // special value indicating that an SQLState is not to be specified
52 } // namespace dbtools
55 #endif // INCLUDED_CONNECTIVITY_STANDARDSQLSTATE_HXX
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */