~clint-fewbar/ubuntu/precise/php5/php5-5.4-merge

« back to all changes in this revision

Viewing changes to ext/pdo_mysql/tests/pdo_mysql_attr_case.phpt

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-02-22 09:46:37 UTC
  • mfrom: (1.1.20) (0.3.18 sid)
  • Revision ID: package-import@ubuntu.com-20110222094637-nlu2tvb7oqgaarl0
Tags: 5.3.5-1ubuntu1
* Merge from debian/unstable. Remaining changes:
 - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions 
      already in universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
                var_dump($known[$default]);
27
27
 
28
28
        // lets see what the default is...
29
 
        if (!is_object($stmt = $db->query('SELECT id, id AS "ID_UPPER", label FROM test ORDER BY id ASC LIMIT 2')))
 
29
        if (!is_object($stmt = $db->query("SELECT id, id AS 'ID_UPPER', label FROM test ORDER BY id ASC LIMIT 2")))
30
30
                printf("[002] %s - %s\n",
31
31
                        var_export($db->errorInfo(), true), var_export($db->errorCode(), true));
32
32
 
48
48
                printf("[006] Cannot add column %s - %s\n",
49
49
                        var_export($db->errorInfo(), true), var_export($db->errorCode(), true));
50
50
 
51
 
        if (!is_object($stmt = $db->query('SELECT id, id AS "ID_UPPER", label, MiXeD, MYUPPER FROM test ORDER BY id ASC LIMIT 2')))
 
51
        if (!is_object($stmt = $db->query("SELECT id, id AS 'ID_UPPER', label, MiXeD, MYUPPER FROM test ORDER BY id ASC LIMIT 2")))
52
52
                printf("[007] %s - %s\n",
53
53
                        var_export($db->errorInfo(), true), var_export($db->errorCode(), true));
54
54
 
62
62
                printf("[009] getAttribute(PDO::ATTR_CASE) returns wrong value '%s'\n",
63
63
                        var_export($tmp, true));
64
64
 
65
 
        if (!is_object($stmt = $db->query('SELECT id, label, MiXeD, MYUPPER, MYUPPER AS "lower" FROM test ORDER BY id ASC LIMIT 1')))
 
65
        if (!is_object($stmt = $db->query("SELECT id, label, MiXeD, MYUPPER, MYUPPER AS 'lower' FROM test ORDER BY id ASC LIMIT 1")))
66
66
                printf("[010] %s - %s\n",
67
67
                        var_export($db->errorInfo(), true), var_export($db->errorCode(), true));
68
68
 
76
76
                printf("[012] getAttribute(PDO::ATTR_CASE) returns wrong value '%s'\n",
77
77
                        var_export($tmp, true));
78
78
 
79
 
        if (!is_object($stmt = $db->query('SELECT id, label, MiXeD, MYUPPER, id AS "ID" FROM test ORDER BY id ASC LIMIT 1')))
 
79
        if (!is_object($stmt = $db->query("SELECT id, label, MiXeD, MYUPPER, id AS 'ID' FROM test ORDER BY id ASC LIMIT 1")))
80
80
                printf("[013] %s - %s\n",
81
81
                        var_export($db->errorInfo(), true), var_export($db->errorCode(), true));
82
82
 
83
83
        var_dump($stmt->fetchAll(PDO::FETCH_BOTH));
84
 
        
 
84
 
85
85
        print "done!";
86
86
?>
87
87
--CLEAN--