reference/mysqli/mysqli/change-user.xml
63b99082ef83eade08151f8cb528246fded81db9
...
...
@@ -10,19 +10,19 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<para>&style.oop;</para>
13
-
<methodsynopsis role="oop">
14
-
<type>bool</type><methodname>mysqli::change_user</methodname>
15
-
<methodparam><type>string</type><parameter>user</parameter></methodparam>
13
+
<methodsynopsis role="mysqli">
14
+
<modifier>public</modifier> <type>bool</type><methodname>mysqli::change_user</methodname>
15
+
<methodparam><type>string</type><parameter>username</parameter></methodparam>
16
16
<methodparam><type>string</type><parameter>password</parameter></methodparam>
17
-
<methodparam><type>string</type><parameter>database</parameter></methodparam>
17
+
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>database</parameter></methodparam>
18
18
</methodsynopsis>
19
19
<para>&style.procedural;</para>
20
20
<methodsynopsis>
21
21
<type>bool</type><methodname>mysqli_change_user</methodname>
22
-
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
23
-
<methodparam><type>string</type><parameter>user</parameter></methodparam>
22
+
<methodparam><type>mysqli</type><parameter>mysql</parameter></methodparam>
23
+
<methodparam><type>string</type><parameter>username</parameter></methodparam>
24
24
<methodparam><type>string</type><parameter>password</parameter></methodparam>
25
-
<methodparam><type>string</type><parameter>database</parameter></methodparam>
25
+
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>database</parameter></methodparam>
26
26
</methodsynopsis>
27
27
<para>
28
28
Changes the user of the specified database connection and sets the current
...
...
@@ -42,7 +42,7 @@
42
42
<variablelist>
43
43
&mysqli.link.description;
44
44
<varlistentry>
45
-
<term><parameter>user</parameter></term>
45
+
<term><parameter>username</parameter></term>
46
46
<listitem>
47
47
<para>
48
48
The MySQL user name.
...
...
@@ -81,17 +81,9 @@
81
81
</para>
82
82
</refsect1>
83
83

84
-
<refsect1 role="notes">
85
-
&reftitle.notes;
86
-
<note>
87
-
<para>
88
-
Using this command will always cause the current database connection to
89
-
behave as if was a completely new database connection, regardless of if
90
-
the operation was completed successfully. This reset includes performing
91
-
a rollback on any active transactions, closing all temporary tables, and
92
-
unlocking all locked tables.
93
-
</para>
94
-
</note>
84
+
<refsect1 role="errors">
85
+
&reftitle.errors;
86
+
&mysqli.conditionalexception;
95
87
</refsect1>
96
88

97
89
<refsect1 role="examples">
...
...
@@ -185,6 +177,19 @@ Value of variable a is NULL
185
177
</example>
186
178
</refsect1>
187
179

180
+
<refsect1 role="notes">
181
+
&reftitle.notes;
182
+
<note>
183
+
<para>
184
+
Using this command will always cause the current database connection to
185
+
behave as if was a completely new database connection, regardless of if
186
+
the operation was completed successfully. This reset includes performing
187
+
a rollback on any active transactions, closing all temporary tables, and
188
+
unlocking all locked tables.
189
+
</para>
190
+
</note>
191
+
</refsect1>
192
+

188
193
<refsect1 role="seealso">
189
194
&reftitle.seealso;
190
195
<para>
...
...
@@ -196,7 +201,6 @@ Value of variable a is NULL
196
201
</refsect1>
197
202

198
203
</refentry>
199
-

200
204
<!-- Keep this comment at the end of the file
201
205
Local variables:
202
206
mode: sgml
203
207