MCPcopy Create free account
hub / github.com/araddon/qlbridge / TestSqlKeywordEscape

Function TestSqlKeywordEscape

rel/parse_sql_test.go:46–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestSqlKeywordEscape(t *testing.T) {
47 sel, err := rel.ParseSql("SELECT form_track_form AS form_track_form, `from` AS `from` FROM user")
48 assert.Equal(t, nil, err)
49 parseSqlTest(t, sel.String())
50}
51
52func TestSqlParseFail(t *testing.T) {
53 tests := []string{

Callers

nothing calls this directly

Calls 4

ParseSqlFunction · 0.92
parseSqlTestFunction · 0.70
EqualMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected