|
11 | 11 | <methodsynopsis>
|
12 | 12 | <type class="union"><type>resource</type><type>false</type></type><methodname>odbc_connect</methodname>
|
13 | 13 | <methodparam><type>string</type><parameter>dsn</parameter></methodparam>
|
14 |
| - <methodparam><type>string</type><parameter>user</parameter></methodparam> |
15 |
| - <methodparam><type>string</type><parameter>password</parameter></methodparam> |
| 14 | + <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>user</parameter><initializer>&null;</initializer></methodparam> |
| 15 | + <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>password</parameter><initializer>&null;</initializer></methodparam> |
16 | 16 | <methodparam choice="opt"><type>int</type><parameter>cursor_option</parameter><initializer><constant>SQL_CUR_USE_DRIVER</constant></initializer></methodparam>
|
17 | 17 | </methodsynopsis>
|
18 | 18 | <simpara>
|
|
49 | 49 | <listitem>
|
50 | 50 | <para>
|
51 | 51 | The username.
|
| 52 | + This parameter is ignored if <parameter>dsn</parameter> contains <literal>uid</literal>. |
| 53 | + If need to connect without specifying a <parameter>user</parameter>, |
| 54 | + please pass &null;. |
52 | 55 | </para>
|
53 | 56 | </listitem>
|
54 | 57 | </varlistentry>
|
|
57 | 60 | <listitem>
|
58 | 61 | <para>
|
59 | 62 | The password.
|
| 63 | + This parameter is ignored if <parameter>dsn</parameter> contains <literal>pwd</literal>. |
| 64 | + If need to connect without specifying a <parameter>password</parameter>, |
| 65 | + please pass &null;. |
60 | 66 | </para>
|
61 | 67 | </listitem>
|
62 | 68 | </varlistentry>
|
|
103 | 109 | </para>
|
104 | 110 | </refsect1>
|
105 | 111 |
|
| 112 | + <refsect1 role="changelog"> |
| 113 | + &reftitle.changelog; |
| 114 | + <informaltable> |
| 115 | + <tgroup cols="2"> |
| 116 | + <thead> |
| 117 | + <row> |
| 118 | + <entry>&Version;</entry> |
| 119 | + <entry>&Description;</entry> |
| 120 | + </row> |
| 121 | + </thead> |
| 122 | + <tbody> |
| 123 | + <row> |
| 124 | + <entry>8.4.0</entry> |
| 125 | + <entry> |
| 126 | + <parameter>user</parameter> and <parameter>password</parameter> are now nullable |
| 127 | + and are optional parameters with an initial value of &null;. |
| 128 | + </entry> |
| 129 | + </row> |
| 130 | + <row> |
| 131 | + <entry>8.4.0</entry> |
| 132 | + <entry> |
| 133 | + When passing an empty <type>string</type> to <parameter>password</parameter>, <literal>pwd</literal> |
| 134 | + was not included in the connection string created until now, but the behavior has been changed to include |
| 135 | + it as an empty string. Passing &null; for <parameter>password</parameter> results in the same behavior as before. |
| 136 | + </entry> |
| 137 | + </row> |
| 138 | + <row> |
| 139 | + <entry>8.4.0</entry> |
| 140 | + <entry> |
| 141 | + Changed the behavior to ignore <parameter>user</parameter> and <parameter>password</parameter> separately when |
| 142 | + <parameter>dsn</parameter> contains <literal>uid</literal> or <literal>pwd</literal>. |
| 143 | + Previously, if included only either <literal>uid</literal> or <literal>pwd</literal> in a <parameter>dsn</parameter>, |
| 144 | + both <parameter>user</parameter> and <parameter>password</parameter> were ignored. |
| 145 | + </entry> |
| 146 | + </row> |
| 147 | + </tbody> |
| 148 | + </tgroup> |
| 149 | + </informaltable> |
| 150 | + </refsect1> |
| 151 | + |
106 | 152 | <refsect1 role="examples">
|
107 | 153 | &reftitle.examples;
|
108 | 154 | <para>
|
|
0 commit comments