herr.ci   [plain text]


/*
 *  herr.ci
 *
 *  $Id: herr.ci,v 1.12 2006/07/10 13:49:29 source Exp $
 *
 *  Error messages
 *
 *  The iODBC driver manager.
 *  
 *  Copyright (C) 1995 by Ke Jin <kejin@empress.com> 
 *  Copyright (C) 1996-2006 by OpenLink Software <iodbc@openlinksw.com>
 *  All Rights Reserved.
 *
 *  This software is released under the terms of either of the following
 *  licenses:
 *
 *      - GNU Library General Public License (see LICENSE.LGPL) 
 *      - The BSD License (see LICENSE.BSD).
 *
 *  Note that the only valid version of the LGPL license as far as this
 *  project is concerned is the original GNU Library General Public License
 *  Version 2, dated June 1991.
 *
 *  While not mandated by the BSD license, any patches you make to the
 *  iODBC source code may be contributed back into the iODBC project
 *  at your discretion. Contributions will benefit the Open Source and
 *  Data Access community as a whole. Submissions may be made at:
 *
 *      http://www.iodbc.org
 *
 *
 *  GNU Library Generic Public License Version 2
 *  ============================================
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Library General Public
 *  License as published by the Free Software Foundation; only
 *  Version 2 of the License dated June 1991.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library General Public License for more details.
 *
 *  You should have received a copy of the GNU Library General Public
 *  License along with this library; if not, write to the Free
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 *
 *  The BSD License
 *  ===============
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions
 *  are met:
 *
 *  1. Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *  2. Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *  3. Neither the name of OpenLink Software Inc. nor the names of its
 *     contributors may be used to endorse or promote products derived
 *     from this software without specific prior written permission.
 *
 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL OPENLINK OR
 *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */


static sqlerrmsg_t sqlerrmsg_tab[] =
{
  { en_00000, "00000", ""},
  { en_01000, "01000", "General warning" },
  { en_01002, "01002", "Disconnect error" },
  { en_01004, "01004", "Data truncated" },
  { en_01006, "01006", "Privilege not revoked" },
  { en_01S00, "01S00", "Invalid connection string attribute" },
  { en_01S01, "01S01", "Error in row" },
  { en_01S02, "01S02", "Optional value changed" },
  { en_01S03, "01S03", "No rows updated or deleted" },
  { en_01S04, "01S04", "More than one row updated or deleted" },
  { en_01S08, "01S08", "Error saving file DSN" },
  { en_07001, "07001", "Wrong number of parameters" },
  { en_07006, "07006", "Restricted data type attribute violation" },
  { en_08001, "08001", "Unable to connect to data source" },
  { en_08002, "08002", "Connection in use" },
  { en_08003, "08003", "Connect not open" },
  { en_08004, "08004", "Data source rejected establishment of connection" },
  { en_08007, "08007", "Connection failure during transaction" },
  { en_08S01, "08S01", "Communication link failure" },
  { en_21S01, "21S01", "Insert value list does not match" },
  { en_21S02, "21S02", "Degree of derived table does not match column list" },
  { en_22001, "22001", "String data right truncation" },
  { en_22003, "22003", "Numeric value out of range" },
  { en_22005, "22005", "Error in assignment" },
  { en_22008, "22008", "Datetime field overflow" },
  { en_22012, "22012", "Division by zero" },
  { en_22026, "22026", "String data, length mismatch" },
  { en_23000, "23000", "Integrity constraint violation" },
  { en_24000, "24000", "Invalid cursor state" },
  { en_25000, "25000", "Invalid transaction state" },
  { en_28000, "28000", "Invalid authorization specification" },
  { en_34000, "34000", "Invalid cursor name" },
  { en_37000, "37000", "Syntax error or access violation" },
  { en_3C000, "3C000", "Duplicate cursor name" },
  { en_40001, "40001", "Serialization failure" },
  { en_42000, "42000", "Syntax error or access violation" },
  { en_70100, "70100", "Operation aborted" },
  { en_HY001, "HY001", "Memory allocation error" },
  { en_HY009, "HY009", "Invalid use of null pointer" },
  { en_HY010, "HY010", "Function sequence error" },
  { en_HY017, "HY017", "Invalid use of an automatically allocated descriptor handle" },
  { en_HY024, "HY024", "Invalid attribute value" },
  { en_HY091, "HY091", "Invalid descriptor field identifier" },
  { en_HY092, "HY092", "Invalid attribute/option identifier" },
  { en_HY110, "HY110", "Invalid driver completion" },
  { en_HYC00, "HYC00", "Optional feature not implemented" },
  { en_IM001, "IM001", "Driver does not support this function" },
  { en_IM002, "IM002", "Data source name not found and no default "
 		     "driver specified. Driver could not be loaded" },
  { en_IM003, "IM003", "Specified driver could not be loaded" },
  { en_IM004, "IM004", "Driver's SQLAllocEnv() failed" },
  { en_IM005, "IM005", "Driver's SQLAllocConnect() failed" },
  { en_IM006, "IM006", "Driver's SQLSetConnectOption failed" },
  { en_IM007, "IM007", "No data source or driver specified, dialog prohibited" },
  { en_IM008, "IM008", "Dialog failed" },
  { en_IM009, "IM009", "Unable to load translation DLL" },
  { en_IM010, "IM010", "Data source name too long" },
  { en_IM011, "IM011", "Driver name too long" },
  { en_IM012, "IM012", "DRIVER keyword syntax error" },
  { en_IM013, "IM013", "Trace file error" },
  { en_IM014, "IM014", "Invalid name of File DSN" },
  { en_IM015, "IM015", "Corrupt file data source" },
  { en_S0001, "S0001", "Base table or view already exists" },
  { en_S0002, "S0002", "Base table not found" },
  { en_S0011, "S0011", "Index already exists" },
  { en_S0012, "S0012", "Index not found" },
  { en_S0021, "S0021", "Column already exists" },
  { en_S0022, "S0022", "Column not found" },
  { en_S0023, "S0023", "No default for column" },
  { en_S1000, "S1000", "General error" },
  { en_S1001, "S1001", "Memory allocation failure" },
  { en_S1002, "S1002", "Invalid column number" },
  { en_S1003, "S1003", "Program type out of range" },
  { en_S1004, "S1004", "SQL data type out of range" },
  { en_S1008, "S1008", "Operation canceled" },
  { en_S1009, "S1009", "Invalid argument value" },
  { en_S1010, "S1010", "Function sequence error" },
  { en_S1011, "S1011", "Operation invalid at this time" },
  { en_S1012, "S1012", "Invalid transaction operation code specified" },
  { en_S1015, "S1015", "No cursor name available" },
  { en_S1090, "S1090", "Invalid string or buffer length" },
  { en_S1091, "S1091", "Descriptor type out of range" },
  { en_S1092, "S1092", "Option type out of range" },
  { en_S1093, "S1093", "Invalid parameter number" },
  { en_S1094, "S1094", "Invalid scale value" },
  { en_S1095, "S1095", "Function type out of range" },
  { en_S1096, "S1096", "Information type out of range" },
  { en_S1097, "S1097", "Column type out of range" },
  { en_S1098, "S1098", "Scope type out of range" },
  { en_S1099, "S1099", "Nullable type out of range" },
  { en_S1100, "S1100", "Uniqueness option type out of range" },
  { en_S1101, "S1101", "Accuracy option type out of range" },
  { en_S1103, "S1103", "Direction option out of range" },
  { en_S1104, "S1104", "Invalid precision value" },
  { en_S1105, "S1105", "Invalid parameter type" },
  { en_S1106, "S1106", "Fetch type out of range" },
  { en_S1107, "S1107", "Row value out of range" },
  { en_S1108, "S1108", "Concurrency option out of range" },
  { en_S1109, "S1109", "Invalid cursor position" },
  { en_S1110, "S1110", "Invalid driver completion" },
  { en_S1111, "S1111", "Invalid bookmark value" },
  { en_S1C00, "S1C00", "Driver not capable" },
  { en_S1T00, "S1T00", "Timeout expired" },
  { en_sqlstat_total,   NULL,	     NULL  }
};

static char *	sqlerrhd = "[iODBC][Driver Manager]";