Lines Matching refs:dbh
32 $dbh = getDbConnection();
33 $dbh->exec($sql);
34 $dbh->exec("INSERT INTO gh10908 VALUES(1, 'ABC', 12.34, 1.0, 2.0, '2023-03-24 17:39', '2023-03-24',…
36 function query_and_dump($dbh, $sql) {
37 foreach ($dbh->query($sql) as $row) {
43 query_and_dump($dbh, "SELECT CODE FROM gh10908"); // works fine
44 query_and_dump($dbh, "SELECT ID FROM gh10908"); // Used to "bus error"
45 query_and_dump($dbh, "SELECT NUM FROM gh10908"); // Used to "bus error"
46 query_and_dump($dbh, "SELECT DBL FROM gh10908"); // Used to "bus error"
47 query_and_dump($dbh, "SELECT TS FROM gh10908"); // Used to "bus error"
48 query_and_dump($dbh, "SELECT MYBLOB FROM gh10908"); // Used to "bus error"
49 query_and_dump($dbh, "SELECT * FROM gh10908"); // Used to "bus error"
51 query_and_dump($dbh, "SELECT CAST(NUM AS NUMERIC(9, 3)) FROM gh10908"); // works fine
52 query_and_dump($dbh, "SELECT CAST(ID AS INTEGER) FROM gh10908"); // works fine
53 query_and_dump($dbh, "SELECT CAST(ID AS BIGINT) FROM gh10908"); // Used to "bus error"
61 $dbh = getDbConnection();
62 @$dbh->exec("DROP TABLE gh10908");
63 unset($dbh);