Browse Source

修改GetRow,GetRows

master v0.1.2
guzeng 2 years ago
parent
commit
c299bd5bf1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tencentdb/db.go

+ 2
- 2
tencentdb/db.go View File

@ -299,7 +299,7 @@ func GetRow(dbconn *sql.DB, dbName, table_name, alias string, titles string, joi
} else { } else {
title = "*" title = "*"
} }
sql_str = StringJoin("/*slave*/ select ", title)
sql_str = StringJoin("select ", title)
if alias != "" { if alias != "" {
table = StringJoin(table, " as ", alias) table = StringJoin(table, " as ", alias)
@ -429,7 +429,7 @@ func FetchRows(dbconn *sql.DB, dbName, table_name, alias string, titles string,
} else { } else {
title = "*" title = "*"
} }
sql_str = StringJoin("/*slave*/ select ", title)
sql_str = StringJoin("select ", title)
if alias != "" { if alias != "" {
table = StringJoin(table, " as ", alias) table = StringJoin(table, " as ", alias)


Loading…
Cancel
Save