Lines Matching refs:conn
23 function dropProfile(PDO $conn): void {
24 $conn->exec(<<<'SQL'
37 function dropUser(PDO $conn): void {
38 $conn->exec(<<<'SQL'
51 function triggerCompilationError(PDO $conn): void {
52 $conn->exec(<<<'SQL'
64 $conn = connectAsAdmin();
66 dropUser($conn);
67 dropProfile($conn);
71 $conn->exec('CREATE PROFILE BUG77120_PROFILE LIMIT PASSWORD_LIFE_TIME 1/86400 PASSWORD_GRACE_TIME 1…
72 $conn->exec('CREATE USER BUG77120_USER IDENTIFIED BY "' . $password . '" PROFILE BUG77120_PROFILE');
73 $conn->exec('GRANT CREATE SESSION TO BUG77120_USER');
78 $conn = connectAsUser('BUG77120_USER', $password);
79 var_dump($conn->errorInfo());
81 $conn = connectAsAdmin();
82 dropUser($conn);
83 dropProfile($conn);
85 $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
86 triggerCompilationError($conn);
87 var_dump($conn->errorInfo());
89 $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
90 triggerCompilationError($conn);
91 var_dump($conn->errorInfo());