File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
reference/mysql_xdevapi/mysql_xdevapi/session Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 10
10
<refsect1 role =" description" >
11
11
&reftitle.description;
12
12
<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 >
14
14
<void />
15
15
</methodsynopsis >
16
16
<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.
19
18
</para >
20
19
</refsect1 >
21
20
27
26
<refsect1 role =" returnvalues" >
28
27
&reftitle.returnvalues;
29
28
<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.
32
30
</para >
33
31
</refsect1 >
34
32
@@ -43,7 +41,7 @@ $uri = "mysqlx://testuser:testpasswd@localhost:33160/testx?ssl-mode=disabled";
43
41
$session = mysql_xdevapi\getSession($uri);
44
42
45
43
$schema = $session->getDefaultSchema();
46
- echo $schema;
44
+ echo $schema->getName() ;
47
45
?>
48
46
]]>
49
47
</programlisting >
You can’t perform that action at this time.
0 commit comments