Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clone an external table

  • Loading branch information...
commit 7c35e7a0a719a645eb86e2c6284b689e33704bb5 1 parent 41d7a08
@xianglei authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  cloneTable.php
  2. +2 −1  getQueryPlan.php
View
2  cloneTable.php
@@ -31,7 +31,7 @@
}
else
{
- $sql = 'CREATE EXTERNAL TABLE '.$_POST['newtablename'].' LIKE '.$_POST['table'];
+ $sql = 'CREATE EXTERNAL IF NOT EXISTS TABLE '.$_POST['newtablename'].' LIKE '.$_POST['table'];
echo $sql;
$client->execute($sql);
echo "<script>alert('".$lang['createTableSuccess']."');showsd('tableList.php?database=".$_GET['database']."','dbStructure.php?database=".$_GET['database']."');</script>";
View
3  getQueryPlan.php
@@ -16,6 +16,7 @@
$hql = "EXPLAIN EXTENDED ".$hql;
echo "<br>";
echo "<center><input type=button value=\"Close Window\" onclick='window.close()'></center>";
+echo "<hr>";
try
{
$res = $client->execute($hql);
@@ -35,7 +36,7 @@
echo "Exception: ".$echo;
}
-
+echo "<hr>";
echo "<center><input type=button value=\"Close Window\" onclick='window.close()'></center>";
//echo 'Field Schemas: '.$status->fieldSchemas.'<br />';
Please sign in to comment.
Something went wrong with that request. Please try again.