mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
f956b50f65
# Hopefully discussed enough this time
26 lines
492 B
PHP
Executable File
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) ""
|
|
}
|