Skip to content

Commit

Permalink
Rebased with the master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
akashthawaitcc committed Dec 26, 2024
1 parent 5bfbe79 commit 9fd86eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions sources/mysql/infoschema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestProcessSchemaMYSQL(t *testing.T) {
},
},
{
query: `SELECT COUNT\(\*\) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA' AND TABLE_NAME = 'CHECK_CONSTRAINTS';`,
query: regexp.QuoteMeta(`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'information_schema' OR TABLE_SCHEMA = 'INFORMATION_SCHEMA') AND TABLE_NAME = 'CHECK_CONSTRAINTS';`),
args: nil,
cols: []string{"count"},
rows: [][]driver.Value{
Expand Down Expand Up @@ -96,7 +96,7 @@ func TestProcessSchemaMYSQL(t *testing.T) {
cols: []string{"INDEX_NAME", "COLUMN_NAME", "SEQ_IN_INDEX", "COLLATION", "NON_UNIQUE"},
},
{
query: `SELECT COUNT\(\*\) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA' AND TABLE_NAME = 'CHECK_CONSTRAINTS';`,
query: regexp.QuoteMeta(`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'information_schema' OR TABLE_SCHEMA = 'INFORMATION_SCHEMA') AND TABLE_NAME = 'CHECK_CONSTRAINTS';`),
args: nil,
cols: []string{"count"},
rows: [][]driver.Value{
Expand Down Expand Up @@ -145,7 +145,7 @@ func TestProcessSchemaMYSQL(t *testing.T) {
},
},
{
query: `SELECT COUNT\(\*\) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA' AND TABLE_NAME = 'CHECK_CONSTRAINTS';`,
query: regexp.QuoteMeta(`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'information_schema' OR TABLE_SCHEMA = 'INFORMATION_SCHEMA') AND TABLE_NAME = 'CHECK_CONSTRAINTS';`),
args: nil,
cols: []string{"count"},
rows: [][]driver.Value{
Expand Down Expand Up @@ -181,7 +181,7 @@ func TestProcessSchemaMYSQL(t *testing.T) {
cols: []string{"INDEX_NAME", "COLUMN_NAME", "SEQ_IN_INDEX", "COLLATION", "NON_UNIQUE"},
},
{
query: `SELECT COUNT\(\*\) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA' AND TABLE_NAME = 'CHECK_CONSTRAINTS';`,
query: regexp.QuoteMeta(`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'information_schema' OR TABLE_SCHEMA = 'INFORMATION_SCHEMA') AND TABLE_NAME = 'CHECK_CONSTRAINTS';`),
args: nil,
cols: []string{"count"},
rows: [][]driver.Value{
Expand Down Expand Up @@ -237,7 +237,7 @@ func TestProcessSchemaMYSQL(t *testing.T) {
cols: []string{"INDEX_NAME", "COLUMN_NAME", "SEQ_IN_INDEX", "COLLATION", "NON_UNIQUE"},
},
{
query: `SELECT COUNT\(\*\) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA' AND TABLE_NAME = 'CHECK_CONSTRAINTS';`,
query: regexp.QuoteMeta(`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'information_schema' OR TABLE_SCHEMA = 'INFORMATION_SCHEMA') AND TABLE_NAME = 'CHECK_CONSTRAINTS';`),
args: nil,
cols: []string{"count"},
rows: [][]driver.Value{
Expand Down Expand Up @@ -418,7 +418,7 @@ func TestProcessData_MultiCol(t *testing.T) {
rows: [][]driver.Value{{"test"}},
},
{
query: `SELECT COUNT\(\*\) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA' AND TABLE_NAME = 'CHECK_CONSTRAINTS';`,
query: regexp.QuoteMeta(`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'information_schema' OR TABLE_SCHEMA = 'INFORMATION_SCHEMA') AND TABLE_NAME = 'CHECK_CONSTRAINTS';`),
args: nil,
cols: []string{"count"},
rows: [][]driver.Value{
Expand Down Expand Up @@ -530,7 +530,7 @@ func TestProcessSchema_Sharded(t *testing.T) {
rows: [][]driver.Value{{"test"}},
},
{
query: `SELECT COUNT\(\*\) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA' AND TABLE_NAME = 'CHECK_CONSTRAINTS';`,
query: regexp.QuoteMeta(`SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA = 'information_schema' OR TABLE_SCHEMA = 'INFORMATION_SCHEMA') AND TABLE_NAME = 'CHECK_CONSTRAINTS';`),
args: nil,
cols: []string{"count"},
rows: [][]driver.Value{
Expand Down
3 changes: 1 addition & 2 deletions ui/src/app/services/fetch/fetch.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ import ICreateSequence from 'src/app/model/auto-gen'
providedIn: 'root',
})
export class FetchService {
// private url: string = window.location.origin
private url: string = 'http://localhost:8080'
private url: string = window.location.origin
constructor(private http: HttpClient) {}

connectTodb(payload: IDbConfig, dialect: string) {
Expand Down

0 comments on commit 9fd86eb

Please sign in to comment.