~ubuntu-branches/ubuntu/lucid/phpmyadmin/lucid

« back to all changes in this revision

Viewing changes to tbl_export.php

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2010-03-08 15:25:00 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100308152500-6e8hmuqc5co39de5
Tags: 4:3.3.0-1
* New upstream version.
* Rediff debian/patches.
* Fix permissions on mediawiki export extension.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/* vim: set expandtab sw=4 ts=4 sts=4: */
3
3
/**
4
4
 *
5
 
 * @version $Id: tbl_export.php 11994 2008-11-24 11:22:44Z nijel $
 
5
 * @version $Id: tbl_export.php 13195 2009-12-30 15:27:27Z lem9 $
6
6
 * @package phpMyAdmin
7
7
 */
8
8
 
31
31
    $analyzed_sql = PMA_SQP_analyze($parsed_sql);
32
32
 
33
33
    // Need to generate WHERE clause?
34
 
    if (isset($primary_key)) {
35
 
        // Yes => rebuild query from scracts, this doesn't work with nested
 
34
    if (isset($where_clause)) {
 
35
        // Yes => rebuild query from scratch; this doesn't work with nested
36
36
        // selects :-(
37
37
        $sql_query = 'SELECT ';
38
38
 
48
48
 
49
49
        $wheres = array();
50
50
 
51
 
        if (isset($primary_key) && is_array($primary_key)
52
 
         && count($primary_key) > 0) {
53
 
            $wheres[] = '(' . implode(') OR (',$primary_key) . ')';
 
51
        if (isset($where_clause) && is_array($where_clause)
 
52
         && count($where_clause) > 0) {
 
53
            $wheres[] = '(' . implode(') OR (',$where_clause) . ')';
54
54
        }
55
55
 
56
56
        if (!empty($analyzed_sql[0]['where_clause']))  {