Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-hook
gic-cloud
Commits
61b4b3e1
Commit
61b4b3e1
authored
Nov 26, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取数平台调整
parent
01bf55e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
FreeQueryController.java
...java/com/gic/cloud/data/hook/web/FreeQueryController.java
+2
-2
No files found.
gic-cloud-data-hook/src/main/java/com/gic/cloud/data/hook/web/FreeQueryController.java
View file @
61b4b3e1
...
...
@@ -188,7 +188,7 @@ public class FreeQueryController {
if
(
sql
.
indexOf
(
"information_schema.columns"
)
>
0
){
sql
=
"SELECT tmpTable.* FROM ("
+
sql
+
") AS tmpTable LIMIT 1000"
;
}
else
{
if
(
sql
.
indexOf
(
"limit
"
)>
0
||
sql
.
indexOf
(
"LIMIT
"
)>
0
){
if
(
sql
.
indexOf
(
"limit
"
)>
0
||
sql
.
indexOf
(
"LIMIT
"
)>
0
){
int
start
=
0
;
if
(
sql
.
indexOf
(
"limit"
)>
0
){
start
=
sql
.
indexOf
(
"limit"
)
+
6
;
...
...
@@ -217,7 +217,7 @@ public class FreeQueryController {
}
public
static
void
main
(
String
[]
args
)
{
String
sql
=
"SELECT * FROM tab_gic_store limit
10000"
;
String
sql
=
"SELECT * FROM tab_gic_store limit 10000"
;
String
s
=
new
FreeQueryController
().
parseSql
(
sql
);
System
.
out
.
println
(
"s = "
+
s
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment