|
|
@ -316,8 +316,11 @@ func GetRow(dbName, table_name, alias string, titles string, join [][]string, wh |
|
|
|
} else { |
|
|
|
title = "*" |
|
|
|
} |
|
|
|
sql_str = helper.StringJoin("/*slave*/ select ", title) |
|
|
|
|
|
|
|
if DB_PROVIDER == "TencentDB" { |
|
|
|
sql_str = helper.StringJoin("/*slave*/ select ", title) |
|
|
|
} else { |
|
|
|
sql_str = helper.StringJoin("select ", title) |
|
|
|
} |
|
|
|
if alias != "" { |
|
|
|
table = helper.StringJoin(table, " as ", alias) |
|
|
|
} |
|
|
@ -463,8 +466,11 @@ func FetchRows(dbName, table_name, alias string, titles string, join [][]string, |
|
|
|
} else { |
|
|
|
title = "*" |
|
|
|
} |
|
|
|
sql_str = helper.StringJoin("/*slave*/ select ", title) |
|
|
|
|
|
|
|
if DB_PROVIDER == "TencentDB" { |
|
|
|
sql_str = helper.StringJoin("/*slave*/ select ", title) |
|
|
|
} else { |
|
|
|
sql_str = helper.StringJoin("select ", title) |
|
|
|
} |
|
|
|
if alias != "" { |
|
|
|
table = helper.StringJoin(table, " as ", alias) |
|
|
|
} |
|
|
|