Skip to content

Commit 6d310c4

Browse files
committed
1 parent 7f1b75e commit 6d310c4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

reference/mysql_xdevapi/mysql_xdevapi/session/getdefaultschema.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
<refsect1 role="description">
1111
&reftitle.description;
1212
<methodsynopsis>
13-
<modifier>public</modifier> <type>string</type><methodname>mysql_xdevapi\Session::getDefaultSchema</methodname>
13+
<modifier>public</modifier> <type class="union"><type>mysql_xdevapi\Schema</type><type>null</type></type><methodname>mysql_xdevapi\Session::getDefaultSchema</methodname>
1414
<void />
1515
</methodsynopsis>
1616
<para>
17-
Retrieve name of the default schema that's typically set in
18-
the connection URI.
17+
Retrieve the default schema that's typically set in the connection URI.
1918
</para>
2019
</refsect1>
2120

@@ -27,8 +26,7 @@
2726
<refsect1 role="returnvalues">
2827
&reftitle.returnvalues;
2928
<para>
30-
Name of the default schema defined by the connection, or &null; if
31-
one was not set.
29+
The default schema defined by the connection, or &null; if one was not set.
3230
</para>
3331
</refsect1>
3432

@@ -43,7 +41,7 @@ $uri = "mysqlx://testuser:testpasswd@localhost:33160/testx?ssl-mode=disabled";
4341
$session = mysql_xdevapi\getSession($uri);
4442
4543
$schema = $session->getDefaultSchema();
46-
echo $schema;
44+
echo $schema->getName();
4745
?>
4846
]]>
4947
</programlisting>

0 commit comments

Comments
 (0)