-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/ext/sqlite/tests/
File Upload :
Current File : //usr/src/php/ext/sqlite/tests/sqlite_oo_028.phpt

--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) ""
}

Copyright © 2017 || Recoded By Mr.Bumblebee