|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <!-- $Revision$ -->
|
3 |
| -<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: takagi Status: ready --> |
| 3 | +<!-- EN-Revision: 871b71764cdca8238069f27436d96011a6a2cb36 Maintainer: takagi Status: ready --> |
4 | 4 | <refentry xml:id="function.db2-connect" xmlns="http://docbook.org/ns/docbook">
|
5 | 5 | <refnamediv>
|
6 | 6 | <refname>db2_connect</refname>
|
|
11 | 11 | <refsect1 role="description">
|
12 | 12 | &reftitle.description;
|
13 | 13 | <methodsynopsis>
|
14 |
| - <type>resource</type><methodname>db2_connect</methodname> |
| 14 | + <type class="union"><type>resource</type><type>false</type></type><methodname>db2_connect</methodname> |
15 | 15 | <methodparam><type>string</type><parameter>database</parameter></methodparam>
|
16 |
| - <methodparam><type>string</type><parameter>username</parameter></methodparam> |
17 |
| - <methodparam><type>string</type><parameter>password</parameter></methodparam> |
18 |
| - <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam> |
| 16 | + <methodparam><type class="union"><type>string</type><type>null</type></type><parameter>username</parameter></methodparam> |
| 17 | + <methodparam><type class="union"><type>string</type><type>null</type></type><parameter>password</parameter></methodparam> |
| 18 | + <methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam> |
19 | 19 | </methodsynopsis>
|
20 | 20 |
|
21 | 21 | <para>
|
@@ -577,11 +577,11 @@ else {
|
577 | 577 | <?php
|
578 | 578 | $library = "ADC";
|
579 | 579 | $i5 = db2_connect("", "", "", array("i5_lib"=>"qsys2"));
|
580 |
| - $result = db2_exec($i5, |
| 580 | + $result = db2_exec($i5, |
581 | 581 | "select * from systables where table_schema = '$library'");
|
582 |
| - while ($row = db2_fetch_both($result)) { |
583 |
| - echo $row['TABLE_NAME']."</br>"; |
584 |
| - } |
| 582 | + while ($row = db2_fetch_both($result)) { |
| 583 | + echo $row['TABLE_NAME']."</br>"; |
| 584 | + } |
585 | 585 | db2_close($i5);
|
586 | 586 | ?>
|
587 | 587 | ]]>
|
@@ -636,7 +636,7 @@ if($tc_conn) {
|
636 | 636 | // 信頼済みユーザーとして何らかの作業をします
|
637 | 637 |
|
638 | 638 | if($userBefore != $userAfter) {
|
639 |
| - echo "User has been switched." . "\n"; |
| 639 | + echo "User has been switched." . "\n"; |
640 | 640 | }
|
641 | 641 | }
|
642 | 642 |
|
@@ -672,7 +672,6 @@ User has been switched.
|
672 | 672 |
|
673 | 673 |
|
674 | 674 | </refentry>
|
675 |
| - |
676 | 675 | <!-- Keep this comment at the end of the file
|
677 | 676 | Local variables:
|
678 | 677 | mode: sgml
|
|
0 commit comments