1. 13 3月, 2020 1 次提交
  2. 20 2月, 2020 1 次提交
  3. 10 2月, 2020 2 次提交
  4. 03 2月, 2020 1 次提交
  5. 02 2月, 2020 1 次提交
  6. 27 1月, 2020 1 次提交
    • L
      Split different SQL statement types to different jaxb definitions (#4087) · 11dfef56
      Liang Zhang 提交于
      * rename ParserResultSet to ExpectedSQLStatements
      
      * rename ExpectedSQLStatements to SQLParserTestCases
      
      * rename ParserResultSetRegistry to SQLParserTestCasesRegistry
      
      * rename ParserResultSetRegistryFactory to SQLParserTestCasesRegistryFactory
      
      * rename VisitorParserResultSetRegistry to VisitorSQLParserTestCasesRegistryFactory
      
      * rename ParserResult to SQLParserTestCase
      
      * add jaxb.segment package
      
      * add jaxb.statement package
      
      * split different SQL statement types to different jaxb definitions
      
      * add final for jaxb's list
      11dfef56
  7. 25 1月, 2020 1 次提交
    • L
      Add more assertions for order by (#4082) · 491862b1
      Liang Zhang 提交于
      * add OrderByItemAssert
      
      * add more assertions for order by
      
      * rename ExpectedGroupBy to ExpectedOrderBy
      
      * fix test case for select_comparison_symbol_with_single_table
      
      * fix test case for select_distinct_with_count_group_by
      
      * fix test case for select_distinct_with_multi_column
      
      * fix test case for select_distinct_with_owner_column
      
      * fix test case for select_distinct_with_owner_star
      
      * fix test case for select_distinct_with_single_count_group_by
      
      * fix test case for select_distinct_with_star
      
      * fix test case for select_exclamation_equal_with_single_table
      
      * fix test case for select_full_route_with_binding_tables
      
      * fix test case for select_distinct_with_owner_star
      
      * fix test case for select_group_by_with_avg
      
      * fix test case for select_group_by_with_count
      
      * fix test case for select_group_by_with_count_without_column_name
      
      * fix test case for select_group_by_with_limit
      
      * fix test case for select_group_by_with_max
      
      * fix test case for select_group_by_with_min
      
      * fix test case for select_group_by_with_order_by_and_limit
      
      * fix test case for select_group_by_with_order_by_desc
      
      * fix test case for select_group_by_with_sum
      
      * fix test case for select_in_with_same_sharding_column
      
      * fix test case for select_in_with_single_table
      
      * fix test case for select_keyword_table_name_with_back_quotes
      
      * fix test case for select_keyword_table_name_with_double_quotes
      
      * fix test case for select_keyword_table_name_with_square_brackets
      
      * fix test case for select_not_between_with_single_table
      
      * fix test case for select_not_equal_with_single_table
      
      * fix test case for select_not_in_with_single_table
      
      * fix test case for select_order_by_asc_and_index_desc
      
      * fix test case for select_order_by_desc_and_index_asc
      
      * fix test case for select_order_by_for_nulls_first
      
      * fix test case for select_order_by_for_nulls_last
      
      * fix test case for select_order_by_with_alias_star_alias_name
      
      * fix test case for select_order_by_with_date
      
      * fix test case for select_order_by_with_multiple_stars
      
      * fix test case for select_order_by_with_ordered_column
      
      * fix test case for select_order_by_with_star_no_table_alias
      
      * fix test case for select_order_by_with_star_table_alias
      
      * fix test case for select_order_by_with_table_star_table_name
      
      * fix test case for select_order_by_with_table_star_without_table_name
      
      * fix test case for select_pagination_with_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_group_by_and_order_by
      
      * fix test case for select_pagination_with_limit_and_offset_keyword
      
      * fix test case for select_pagination_with_limit_with_back_quotes
      
      * fix test case for select_pagination_with_offset
      
      * fix test case for select_pagination_with_offset_and_limit
      
      * fix test case for select_pagination_with_offset_fetch
      
      * fix test case for select_pagination_with_row_count
      
      * fix test case for select_pagination_with_row_number
      
      * fix test case for select_pagination_with_row_number_for_greater_than
      
      * fix test case for select_pagination_with_row_number_and_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_row_number_and_group_by_and_order_by
      
      * fix test case for select_pagination_with_row_number_for_greater_than_and_equal
      
      * fix test case for select_pagination_with_row_number_not_at_end
      
      * fix test case for select_pagination_with_top
      
      * fix test case for select_pagination_with_top_and_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_top_and_diff_group_by_and_order_by_and_parentheses
      
      * fix test case for select_pagination_with_top_and_group_by_and_order_by
      
      * fix test case for select_pagination_with_top_and_group_by_and_order_by_and_parentheses
      
      * fix test case for select_pagination_with_top_for_greater_than
      
      * fix test case for select_pagination_with_top_for_greater_than_and_equal
      
      * fix test case for select_sharding_route_with_binding_tables
      
      * fix test case for select_sharding_route_with_broadcast_table
      
      * fix test case for select_with_date_function
      
      * fix test case for select_with_double_quotes
      
      * fix test case for select_with_expression
      
      * fix test case for select_with_item_alias_match_order_by_and_group_by_items
      
      * remove useless group-by-columns and order-by-columns
      491862b1
  8. 19 1月, 2020 1 次提交
    • L
      Complete projection assertion (#4015) · 9405b259
      Liang Zhang 提交于
      * remove useless findSQLSegment in SQLStatementAssert
      
      * assert projections's attribute
      
      * distinctRow to distinct-row for xml
      
      * fix assert text
      
      * remove XmlElementWrapper
      
      * refactor ExpectedProjections's field name
      
      * rename ExpectedBaseProjection to AbstractExpectedProjection
      
      * refactor ExpectedProjections.findExpectedProjections()
      
      * add getStartIndex and getStopIndex for ExpectedProjection interface
      
      * add sort for projections
      
      * add sort for projections
      
      * remove useless getter for ExpectedProjections
      
      * refactor ProjectionAssert.assertProjection
      
      * add start index and stop index's assert for assertProjection
      
      * use int instead of Integer in ExpectedProjection
      
      * use int instead of Integer in ExpectedProjections
      
      * refactor ExpectedTableSegment
      
      * add assertShorthandProjection
      
      * add assertShorthandProjection
      
      * add assertColumnProjection
      
      * add assertAggregationProjection
      
      * add assertAggregationDistinctProjection
      
      * add assertExpressionProjection
      
      * add assertTopProjection
      
      * remove ExpectedProjection.getText() and getParameterMarkerText()
      9405b259
  9. 17 1月, 2020 1 次提交
  10. 14 1月, 2020 1 次提交
  11. 13 1月, 2020 1 次提交
    • L
      Remove SQL cases for sharding, encrypt and shadow, just need a unify SQL cases (#3958) · ac4c8710
      Liang Zhang 提交于
      * remove useless encrypt and shadow sql for parse
      
      * rename ShardingSQLCasesRegistry to SQLCasesRegistry
      
      * rename ShardingParameterizedParsingTest to ParameterizedParsingTest
      
      * rename ShardingSQLStatementAssert to SQLStatementAssert
      
      * rename sharding resources to sql resources
      
      * remove useless EncryptParserResultSetRegistry and ShadowParserResultSetRegistry
      ac4c8710
  12. 08 11月, 2019 1 次提交
    • L
      Make parser module to a independent module (#3476) · 1bdb7a17
      Liang Zhang 提交于
      * move shrarding-core-parse to sql-parse module
      
      * rename shrarding-core-parse-xxx to sql-parse-xxx
      
      * update pom
      
      * rename package name from org.apache.shardingsphere.core.parse to org.apache.shardingsphere.sql.parser
      
      * decouple SQLParsingException & ShardingException
      
      * rename sql-parser to shardingsphere-sql-parser
      
      * add database type for SQL parser
      
      * remove database type for SQL parser
      
      * remove useless feature type of RuleDefinitionFileConstant.getFillerRuleDefinitionFile
      
      * decouple RuleDefinitionFileConstant and DatabaseType
      
      * decouple SQLParserFactory and DatabaseType
      
      * remove SQLParserFactory.DATABASE_TYPE_NAMES
      
      * decouple SQLParserEngine and DatabaseType
      
      * decouple SQLStatementFillerEngine and DatabaseType
      
      * use SQLParseEngineFactory to get SQLParseEngine instance
      
      * decouple DatabaseType from SQLParseEngine and SQLParseKernel
      
      * decouple sharding-core-api from shardingsphere-sql-parser-spi
      
      * decouple DatabaseType from SQLParseEngineFactory
      
      * add shardingsphere-spi module
      
      * adjust package of shardingsphere-spi
      
      * rename BaseAlgorithmFactoryTest to TypeBasedSPIServiceLoaderTest
      
      * rename fixture of test case
      
      * remove useless ComplexKeysShardingAlgorithmFixture
      
      * remove sharding-core-common dependency from shardingsphere-sql-parser-test
      
      * remove useless rule
      
      * remove useless dependency from sharding-core-preprocessor
      1bdb7a17
  13. 09 8月, 2019 2 次提交
  14. 05 8月, 2019 1 次提交
  15. 08 7月, 2019 1 次提交
  16. 14 6月, 2019 2 次提交
  17. 08 6月, 2019 1 次提交
  18. 29 5月, 2019 1 次提交
  19. 28 5月, 2019 1 次提交
  20. 11 5月, 2019 2 次提交
  21. 26 3月, 2019 1 次提交
  22. 14 3月, 2019 1 次提交
  23. 12 3月, 2019 2 次提交
  24. 11 3月, 2019 1 次提交
  25. 10 3月, 2019 1 次提交
  26. 08 3月, 2019 1 次提交
  27. 28 1月, 2019 3 次提交
    • P
      Modify tableToken (#1832) · 7ecf997b
      panjuan 提交于
      * rename to stopIndex
      
      * rename to placeholderIndex
      
      * use placeholderIndex
      
      * add author
      
      * rename to startIndex
      
      * rename to columnIndex
      
      * rename to groupByStopIndex
      
      * sqlSegment.getGroupByStopIndex() + 1
      
      * rename to startIndex
      
      * rename to stopIndex
      
      * calculate GroupBySegment
      
      * rename to startIndex
      
      * use startIndex
      
      * modify to startIndex
      
      * rename to columnsListLastIndex
      
      * USE insertValuesListLastIndex
      
      * use startIndex
      
      * modify tokens
      
      * use columnClauseStartIndex
      
      * rename to startIndex
      
      * rename to selectListStopIndex
      
      * modify tests
      
      * setGroupByLastIndex
      
      * rename to insertValuesListLastIndex
      
      * modify tests
      
      * use insertValuesListLastIndex
      
      * add author
      
      * use stopIndex
      
      * calculate SchemaToken
      
      * modify test
      
      * use stop-index
      
      * modify SchemaTokenAssert
      
      * modify parser-result
      
      * setLogicSQL(sql)
      
      * modify getLogicTableNames()
      
      * use stopIndex
      
      * modify tests
      
      * modify SQLRewriteEngine.java
      
      * calculate IndexToken
      
      * modify alter.xml
      
      * modify create.xml
      
      * mpdify drop.xml
      
      * modify select.xml
      
      * modify IndexTokenAssert.java
      
      * modify ExpectedIndexToken.java
      
      * modify stop-index
      
      * modify getAggregationDistinctSelectItem()
      
      * calculate
      
      * stopIndex
      
      * modify appendAggregationDistinctPlaceholder()
      
      * modify fillAggregationSelectItemSegment()
      
      * modify AggregationDistinctTokenAssert.java
      
      * use stop-index
      
      * modify parsing result
      
      * modify TableToken
      
      * add getLeftDelimiter()
      
      * add getRightDelimiter()
      
      * add hasDelimiter()
      
      * modify TableReferencesClauseParser
      
      * modify BasicExpressionParser
      
      * modify AliasExpressionParser
      
      * modify UpdateSetItemsClauseParser
      
      * MODIFY MySQLShowParser
      
      * modify TablePlaceholder
      
      * modify TableNameExtractor.java
      
      * calculate table token
      
      * calculate table token
      
      * modify hasDelimiter()
      
      * modify appendTablePlaceholder()
      
      * add getLength()
      
      * modify appendTablePlaceholder()
      
      * modify cases for SQLRewriteEngineTest.java
      
      * modify cases for SQLBuilderTest.java
      
      * modify cases for InsertOptimizeEngineTest.java
      
      * modify ExpectedTableToken
      
      * modify TableTokenAssert
      
      * rename to startIndex
      
      * use start-index
      
      * use start-index for select xml
      
      * modify assertTableToken
      
      * modify alter.xml
      
      * modify create.xml
      
      * modify drop.xml
      
      * modify deny_user.xml
      
      * modify select.xml
      
      * modify truncate.xml
      
      * delete originalLiterals
      
      * modify assertTableToken()
      
      * modify SQLUtil.java
      
      * modify truncate.xml
      
      * modify alter.xml
      
      * modify create.xml
      
      * modify drop.xml
      
      * modify select.xml
      
      * modify delete.xml
      
      * reverse  toLowerCase()
      
      * modify drop.xml
      
      * modify truncate.xml
      7ecf997b
    • T
      modify select.xml · c1d4faed
      tristaZero 提交于
      c1d4faed
    • T
      modify select.xml · 5ac11b73
      tristaZero 提交于
      5ac11b73
  28. 03 12月, 2018 1 次提交
  29. 12 6月, 2018 4 次提交
  30. 08 6月, 2018 1 次提交