add tests
This commit is contained in:

committed by
Markus Mäkelä

parent
dbfd631fed
commit
8c6ca38a8a
19
maxscale-system-test/bug729.php
Normal file
19
maxscale-system-test/bug729.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
$options = [
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
PDO::ATTR_EMULATE_PREPARES => false,
|
||||
];
|
||||
|
||||
$host=$argv[1];
|
||||
$port=$argv[2];
|
||||
$user=$argv[3];
|
||||
$pass=$argv[4];
|
||||
|
||||
$dsn = "mysql:host=".$host.";port=".$port.";dbname=information_schema";
|
||||
$dbh = new PDO( $dsn, $user, $pass, $options );
|
||||
$res = $dbh
|
||||
->query( "SELECT COLLATION_NAME FROM COLLATIONS" )
|
||||
->fetch( PDO::FETCH_COLUMN );
|
||||
|
||||
var_dump( $res );
|
||||
|
Reference in New Issue
Block a user