Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Cuko committed Dec 20, 2023
1 parent 5ee3921 commit c4fc7c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
run: cargo build --features mssql --verbose
- name: Run tests
run: cargo test --verbose
- name: Run tests MSSQL
run: cargo test --features mssql dialect_translation::mssql --verbose
run: cargo test --features mssql --verbose
10 changes: 1 addition & 9 deletions src/dialect_translation/mssql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ impl RelationToQueryTranslator for MSSQLTranslator {
})
}

fn char_length(&self, expr: &expr::Expr) -> ast::Expr {
todo!()
}

fn cast_as_text(&self, expr: &expr::Expr) -> ast::Expr {
todo!()
}

fn cast_as_boolean(&self, expr: &expr::Expr) -> ast::Expr {
// It should be CAST(expr AS BIT) but BIT is not a valid ast::DataType
// So we cast it to INT
Expand All @@ -147,7 +139,7 @@ impl RelationToQueryTranslator for MSSQLTranslator {
// during the onboarding
// CAST(col AS VARCHAR/TEXT) -> CONVERT(VARCHAR, col, 126)

// TODO because not supported yet.
// TODO: some functions are not supported yet.
// EXTRACT(epoch FROM column) -> DATEDIFF(SECOND, '19700101', column)
// Concat(a, b) has to take at least 2 args, it can take empty string as well.
// onboarding, charset query: SELECT DISTINCT REGEXP_SPLIT_TO_TABLE(anon_2.name ,'') AS "regexp_split" ...
Expand Down

0 comments on commit c4fc7c1

Please sign in to comment.