This website works better with JavaScript.
Home
Explore
Help
Sign In
tgo
/
dbquery
Watch
6
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
37
Wiki
Activity
Browse Source
查询增加主从判断逻辑
master
v0.10.0
guzeng
2 years ago
parent
155e124c63
commit
ff798de0a6
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
chain.go
+ 4
- 1
chain.go
View File
@ -351,7 +351,10 @@ func (this *Query) QueryStmt() error {
return
err
}
sql
:=
helper
.
ToStr
(
res
[
"sql"
]
)
if
this
.
conn
==
nil
{
if
SLAVER_DB
!=
nil
{
this
.
conn
=
SLAVER_DB
}
else
{
this
.
conn
=
DB
}
Write
Preview
Loading…
Cancel
Save