File tree Expand file tree Collapse file tree 4 files changed +72
-4
lines changed Expand file tree Collapse file tree 4 files changed +72
-4
lines changed Original file line number Diff line number Diff line change @@ -1856,6 +1856,31 @@ and <literal xmlns="http://docbook.org/ns/docbook">_</literal> to match a single
1856
1856
</entry >
1857
1857
</row >'>
1858
1858
1859
+ <!ENTITY odbc.changelog.credential-params '<row xmlns =" http://docbook.org/ns/docbook" >
1860
+ <entry >8.4.0</entry >
1861
+ <entry >
1862
+ <parameter >user</parameter > and <parameter >password</parameter > are now nullable
1863
+ and are optional parameters with an initial value of &null; .
1864
+ </entry >
1865
+ </row >
1866
+ <row xmlns =" http://docbook.org/ns/docbook" >
1867
+ <entry >8.4.0</entry >
1868
+ <entry >
1869
+ When passing an empty <type >string</type > to <parameter >password</parameter >, <literal >pwd</literal >
1870
+ was not included in the connection string created until now, but the behavior has been changed to include
1871
+ it as an empty string. Passing &null; for <parameter >password</parameter > results in the same behavior as before.
1872
+ </entry >
1873
+ </row >
1874
+ <row xmlns =" http://docbook.org/ns/docbook" >
1875
+ <entry >8.4.0</entry >
1876
+ <entry >
1877
+ Changed the behavior to ignore <parameter >user</parameter > and <parameter >password</parameter > separately when
1878
+ <parameter >dsn</parameter > contains <literal >uid</literal > or <literal >pwd</literal >.
1879
+ Previously, if included only either <literal >uid</literal > or <literal >pwd</literal > in a <parameter >dsn</parameter >,
1880
+ both <parameter >user</parameter > and <parameter >password</parameter > were ignored.
1881
+ </entry >
1882
+ </row >'>
1883
+
1859
1884
<!ENTITY odbc.changelog.result-param '<row xmlns =" http://docbook.org/ns/docbook" >
1860
1885
<entry >8.4.0</entry >
1861
1886
<entry >
Original file line number Diff line number Diff line change 116
116
</variablelist >
117
117
</para >
118
118
</refsect1 >
119
+
120
+ <refsect1 role =" changelog" >
121
+ &reftitle.changelog;
122
+ <informaltable >
123
+ <tgroup cols =" 2" >
124
+ <thead >
125
+ <row >
126
+ <entry >&Version; </entry >
127
+ <entry >&Description; </entry >
128
+ </row >
129
+ </thead >
130
+ <tbody >
131
+ <row >
132
+ <entry >8.4.0</entry >
133
+ <entry >
134
+ When passing an empty <type >string</type > to the password argument in the PDO constructor, <literal >pwd</literal >
135
+ was not included in the connection string created until now, but the behavior has been changed to include
136
+ it as an empty string. Passing &null; for the password argument in the PDO constructor results in the same
137
+ behavior as before.
138
+ </entry >
139
+ </row >
140
+ <row >
141
+ <entry >8.4.0</entry >
142
+ <entry >
143
+ Changed the behavior to ignore the user name argument and the password argument in the PDO constructor
144
+ separately when the DSN contains <literal >uid</literal > or <literal >pwd</literal >.
145
+ Previously, if included only either <literal >uid</literal > or <literal >pwd</literal > in the DSN,
146
+ both the user name argument and the password argument in the PDO constructor were ignored.
147
+ </entry >
148
+ </row >
149
+ </tbody >
150
+ </tgroup >
151
+ </informaltable >
152
+ </refsect1 >
153
+
119
154
<refsect1 role =" examples" >
120
155
&reftitle.examples;
121
156
<para >
Original file line number Diff line number Diff line change 11
11
<methodsynopsis >
12
12
<type class =" union" ><type >Odbc\Connection</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 >
115
121
</thead >
116
122
<tbody >
117
123
&odbc.changelog.connection-return;
124
+ &odbc.changelog.credential-params;
118
125
</tbody >
119
126
</tgroup >
120
127
</informaltable >
Original file line number Diff line number Diff line change 11
11
<methodsynopsis >
12
12
<type class =" union" ><type >Odbc\Connection</type ><type >false</type ></type ><methodname >odbc_pconnect</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
<para >
56
56
</thead >
57
57
<tbody >
58
58
&odbc.changelog.connection-return;
59
+ &odbc.changelog.credential-params;
59
60
</tbody >
60
61
</tgroup >
61
62
</informaltable >
You can’t perform that action at this time.
0 commit comments