|
|
@ -307,6 +307,7 @@ func GetRow(dbName, table_name, alias string, titles string, with, join [][]stri |
|
|
|
withSql := "" |
|
|
|
if len(with) > 0 { |
|
|
|
var builder strings.Builder |
|
|
|
builder.Reset() |
|
|
|
builder.WriteString("WITH ") |
|
|
|
boo := false |
|
|
|
for k, v := range with { |
|
|
@ -353,6 +354,7 @@ func GetRow(dbName, table_name, alias string, titles string, with, join [][]stri |
|
|
|
|
|
|
|
if len(join) > 0 { |
|
|
|
var builder strings.Builder |
|
|
|
builder.Reset() |
|
|
|
for _, joinitem := range join { |
|
|
|
if len(joinitem) < 2 { |
|
|
|
continue |
|
|
@ -496,6 +498,7 @@ func FetchRows(dbName, table_name, alias string, titles string, with, join [][]s |
|
|
|
withSql := "" |
|
|
|
if len(with) > 0 { |
|
|
|
var builder strings.Builder |
|
|
|
builder.Reset() |
|
|
|
builder.WriteString("WITH ") |
|
|
|
boo := false |
|
|
|
for k, v := range with { |
|
|
@ -543,6 +546,7 @@ func FetchRows(dbName, table_name, alias string, titles string, with, join [][]s |
|
|
|
|
|
|
|
if len(join) > 0 { |
|
|
|
var builder strings.Builder |
|
|
|
builder.Reset() |
|
|
|
for _, joinitem := range join { |
|
|
|
if len(joinitem) < 2 { |
|
|
|
continue |
|
|
|