ibm-information-center/dist/eclipse/plugins/i5OS.ic.cli_5.4.0.1/rzadpfncolx.htm

155 lines
9.0 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="SQLLanguages - Get SQL dialect or conformance information" />
<meta name="DC.Relation" scheme="URI" content="rzadphdapi.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzadpfncolx" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>SQLLanguages - Get SQL dialect or conformance information</title>
</head>
<body id="rzadpfncolx"><a name="rzadpfncolx"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">SQLLanguages - Get SQL dialect or conformance information</h1>
<div><div class="section"></div>
<div class="section"><h4 class="sectiontitle">Purpose</h4> <p><samp class="codeph">SQLLanguages()</samp> returns
SQL dialect or conformance information. The information is returned in an
SQL result set, which can be retrieved using the same functions that are used
to fetch a result set generated by a SELECT statement.</p>
</div>
<div class="section"><h4 class="sectiontitle">Syntax</h4><pre>SQLRETURN SQLLanguages (SQLHSTMT hstmt);</pre>
</div>
<div class="section"><h4 class="sectiontitle">Function arguments</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="hsides" border="1" rules="all"><caption>Table 1. SQLLanguages arguments</caption><thead align="left"><tr><th align="left" valign="top" width="20%" id="d0e45">Data type</th>
<th align="left" valign="top" width="20%" id="d0e47">Argument</th>
<th align="left" valign="top" width="20%" id="d0e49">Use</th>
<th align="left" valign="top" width="40%" id="d0e51">Description</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="20%" headers="d0e45 ">SQLHSTMT</td>
<td align="left" valign="top" width="20%" headers="d0e47 "><em>hstmt</em></td>
<td align="left" valign="top" width="20%" headers="d0e49 ">Input</td>
<td align="left" valign="top" width="40%" headers="d0e51 ">Statement handle</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section"><h4 class="sectiontitle">Usage</h4><p>The function returns dialect and conformance
information, in the form of a result set on <samp class="codeph">StatementHandle</samp>.
This contains a row for every conformance claim the SQL product makes (including
subsets defined for ISO and vendor-specific versions). For a product that
claims to comply with this specification, the result set thus contains at
least one row.</p>
<div class="p">Rows defining ISO standard and vendor-specific languages
can exist in the same table. Each row has at least these columns and, if it
makes an X/Open SQL conformance claim, the columns contains these values.
<div class="tablenoborder"><a name="rzadpfncolx__tblang"><!-- --></a><table cellpadding="4" cellspacing="0" summary="" id="rzadpfncolx__tblang" width="100%" frame="hsides" border="1" rules="all"><caption>Table 2. Columns returned
by SQLLanguages</caption><thead align="left"><tr><th align="left" valign="top" width="25%" id="d0e84">Column name</th>
<th align="left" valign="top" width="25%" id="d0e86">Data type</th>
<th align="left" valign="top" width="50%" id="d0e88">Description</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="25%" headers="d0e84 ">BINDING_SYTLE</td>
<td align="left" valign="top" width="25%" headers="d0e86 ">VARCHAR(254)</td>
<td align="left" valign="top" width="50%" headers="d0e88 ">Either 'EMBEDDED', 'DIRECT', OR 'CLI'.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e84 ">CONFORMANCE</td>
<td align="left" valign="top" width="25%" headers="d0e86 ">VARCHAR(254)</td>
<td align="left" valign="top" width="50%" headers="d0e88 ">The conformance level to the relevant document
that the implementation claims.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e84 ">IMPLEMENTATION</td>
<td align="left" valign="top" width="25%" headers="d0e86 ">VARCHAR(254)</td>
<td align="left" valign="top" width="50%" headers="d0e88 ">A character string, defined by the vendor,
that uniquely identifies the vendor's SQL product.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e84 ">INTEGRITY</td>
<td align="left" valign="top" width="25%" headers="d0e86 ">VARCHAR(254)</td>
<td align="left" valign="top" width="50%" headers="d0e88 ">An indication of whether the implementation
supports the Integrity Enhancement Feature (IEF).</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e84 ">PROGRAMMING_LANG</td>
<td align="left" valign="top" width="25%" headers="d0e86 ">VARCHAR(254)</td>
<td align="left" valign="top" width="50%" headers="d0e88 ">The host language for which the binding style
is supported.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e84 ">SOURCE_YEAR</td>
<td align="left" valign="top" width="25%" headers="d0e86 ">VARCHAR(254)</td>
<td align="left" valign="top" width="50%" headers="d0e88 ">The year the relevant source document is
approved.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e84 ">SOURCE</td>
<td align="left" valign="top" width="25%" headers="d0e86 ">VARCHAR(254), NOT NULL</td>
<td align="left" valign="top" width="50%" headers="d0e88 ">The organization that defined this SQL version.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section"><h4 class="sectiontitle">Return codes</h4><ul><li>SQL_SUCCESS</li>
<li>SQL_SUCCESS_WITH_INFO</li>
<li>SQL_ERROR</li>
<li>SQL_INVALID_HANDLE</li>
</ul>
</div>
<div class="section"><h4 class="sectiontitle">Diagnostics</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="hsides" border="1" rules="rows"><caption>Table 3. SQLLanguages SQLSTATEs</caption><thead align="left"><tr><th align="left" valign="top" width="25%" id="d0e166">SQLSTATE</th>
<th align="left" valign="top" width="25%" id="d0e168">Description</th>
<th align="left" valign="top" width="50%" id="d0e170">Explanation</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="25%" headers="d0e166 "><strong>24</strong>000</td>
<td align="left" valign="top" width="25%" headers="d0e168 ">Cursor state that is not valid</td>
<td align="left" valign="top" width="50%" headers="d0e170 ">Cursor related information is requested,
but no cursor is open.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e166 "><strong>40</strong>003 <strong>*</strong></td>
<td align="left" valign="top" width="25%" headers="d0e168 ">Statement completion unknown</td>
<td align="left" valign="top" width="50%" headers="d0e170 ">The communication link between the CLI and
the data source fails before the function completes processing.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e166 "><strong>HY</strong>001</td>
<td align="left" valign="top" width="25%" headers="d0e168 ">Memory allocation failure</td>
<td align="left" valign="top" width="50%" headers="d0e170 ">The driver is unable to allocate memory required
to support the processing or completion of the function.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e166 "><strong>HY</strong>009</td>
<td align="left" valign="top" width="25%" headers="d0e168 ">String or buffer length that is not valid</td>
<td align="left" valign="top" width="50%" headers="d0e170 ">The value of one of the name length arguments
is less than 0, but not equal SQL_NTS.</td>
</tr>
<tr><td align="left" valign="top" width="25%" headers="d0e166 "><strong>HY</strong>C00</td>
<td align="left" valign="top" width="25%" headers="d0e168 ">Driver not capable</td>
<td align="left" valign="top" width="50%" headers="d0e170 ">DB2<sup>®</sup> UDB CLI does not support <em>catalog</em> as
a qualifier for table name.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzadphdapi.htm" title="This topic provides a description of each CLI function.">DB2 UDB CLI functions</a></div>
</div>
</div>
</body>
</html>