php-src/ext/sqlite/tests/sqlite_oo_028.phpt
Marcus Boerger f956b50f65 Change to studlyCaps convention
# Hopefully discussed enough this time
2004-03-26 21:16:50 +00:00

26 lines
492 B
PHP
Executable File

--TEST--
sqlite-oo: sqlite_fetch_column_types
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded("sqlite")) print "skip"; ?>
--FILE--
<?php
include "blankdb_oo.inc";
$db->query("CREATE TABLE strings(a, b INTEGER, c VARCHAR(10), d)");
$db->query("INSERT INTO strings VALUES('1', '2', '3', 'abc')");
var_dump($db->fetchColumnTypes("strings"));
?>
--EXPECT--
array(4) {
["a"]=>
string(0) ""
["b"]=>
string(7) "INTEGER"
["c"]=>
string(11) "VARCHAR(10)"
["d"]=>
string(0) ""
}