home *** CD-ROM | disk | FTP | other *** search
- /*---------------------------------------------------------------------------
- *
- * Copyright (c) 1995 by Cadre Technologies Inc.
- *
- * This software is furnished under a license and may be used only in
- * accordance with the terms of such license and with the inclusion of
- * the above copyright notice. This software or any other copies thereof
- * may not be provided or otherwise made available to any other person.
- * No title to and ownership of the software is hereby transferred.
- *
- * The information in this software is subject to change without notice
- * and should not be construed as a commitment by Cadre Technologies Inc.
- *
- *---------------------------------------------------------------------------
- *
- * File : @(#)SqlPrint.cxx 1.1
- * Original date : November 1995
- * Description : General error handling function
- *
- *---------------------------------------------------------------------------
- */
- static const char SccsId[]="@(#)SqlPrint.cxx 1.1\t20 Dec 1995 Copyright 1995 Cadre Technologies Inc.";
-
- #ifndef SQLPRINT_HXX
- #include "SqlPrint.hxx"
- #endif
-
- #ifndef ORACLE_HXX
- #include "Oracle.hxx"
- #endif
-
- #include <stdlib.h>
- #include <iostream.h>
-
- void sqlprint()
- {
- char errmsg[400];
- int maxSize = 400;
- int actualSize;
-
- sqlglm(errmsg, &maxSize, &actualSize);
- errmsg[actualSize] = '\0';
-
- cerr << "RDBMS statement failed:" << endl;
- cerr << errmsg << endl;
- }
-
-