~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/sqlite/tests/sqlite_026.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
sqlite: sqlite_fetch_column_types
 
3
--SKIPIF--
 
4
<?php # vim:ft=php
 
5
if (!extension_loaded("sqlite")) print "skip"; ?>
 
6
--FILE--
 
7
<?php 
 
8
include "blankdb.inc";
 
9
 
 
10
sqlite_query($db, "CREATE TABLE strings(a, b INTEGER, c VARCHAR(10), d)");
 
11
sqlite_query($db, "INSERT INTO strings VALUES('1', '2', '3', 'abc')");
 
12
 
 
13
var_dump(sqlite_fetch_column_types($db, "strings"));
 
14
 
 
15
sqlite_close($db);
 
16
?>
 
17
--EXPECT--
 
18
array(4) {
 
19
  ["a"]=>
 
20
  string(0) ""
 
21
  ["b"]=>
 
22
  string(7) "INTEGER"
 
23
  ["c"]=>
 
24
  string(11) "VARCHAR(10)"
 
25
  ["d"]=>
 
26
  string(0) ""
 
27
}