Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rollback

  • Loading branch information...
commit ac3d7436a33adf6b4a966c7b8c510de2fee3bb1b 1 parent 469a7d2
@xianglei authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  hint.php
  2. +3 −3 templates/sql_query.html
View
2  hint.php
@@ -42,7 +42,7 @@
}
foreach ($array as $key => $value)
{
- $str .= '"'.trim($value).'",';
+ $str .= trim($value)."\n";
}
echo substr($str,0,-1);
?>
View
6 templates/sql_query.html
@@ -1,8 +1,8 @@
<form method=post name=form>
-<!--<div id="hiveudf">-->
-<textarea cols="80" rows="10" name="sql" id="sql" data-provide="typeahead" data-items="10" data-source='[<?php include_once "hint.php";?>]'>select * from <?php echo $_GET['table'];?> limit 30</textarea>
-<!--</div>-->
+<div id="hiveudf">
+<textarea cols="80" rows="10" name="sql" id="sql">select * from <?php echo $_GET['table'];?> limit 30</textarea>
+</div>
<br>
<button type=button class="btn btn-primary" name=check value="" onclick="getQueryPlan()"><i class=icon-ok></i> <?php echo $lang['hqlValidator'];?></button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Please sign in to comment.
Something went wrong with that request. Please try again.