1. 02 10月, 2019 1 次提交
    • S
      testcase code added for package of org.apache.shardingsphere.core.optimize.segment.insert (#3158) · dd33dd99
      sluk3r 提交于
      * unit test LogicSchema#getDataSources
      
      * powermock.version extracted
      
      * 1. remove powermock-api-mockito2
      2. Apache copyright added, and several code style corrected
      3. replace assertEquals with assertThat
      
      * delete blank lines
      
      * add a group of testcases: DerivedLiteralExpressionSegmentTest,DerivedParameterMarkerExpressionSegmentTest,InsertValueContextTest
      
      * generic type added for MethodInvocation
      
      * EqualsAndHashCode added for class of DerivedParameterMarkerExpressionSegment and DerivedLiteralExpressionSegment
      
      * Generic Subtypes added for InsertValueContext's constructor
      
      * Testcased added for InsertValueContext
      
      * copyright added
      
      * the unused test case LogicSchemaTest deleted
      
      * 1. remove EqualsAndHashCode in class of DerivedLiteralExpressionSegment and DerivedParameterMarkerExpressionSegment
      2. remove unnecessary blank lines
      3. change "List<? extends Object>" back to List<Object>
      
      * remove convenience class MethodInvocation
      
      * InsertValueContext's generic subtype support changed back to original
      
      * 1. remove unused import of EqualsAndHashCode,Getter,RequiredArgsConstructor and SneakyThrows
      2. InsertValueContext's generic subtype support changed back to original
      3. remove unnecessary blank lines
      4. add final key word for TestCase class
      5. remove unnecessary class definition of MethodInvocation
      
      * generic type added to InsertValueContext's constructor
      
      * 1. generic type removed for  InsertValueContext's constructor
      2. generic type added for Collections.singletonList invocation
      
      * 1. Lists.<ExpressionSegment>newArrayList changed to Collections.<ExpressionSegment>singleton
      
      * 1. revert to the original indent
      
      * 1. add a blank line for end of file
      2. set "Keep indents on empty lines" in IDE, and the starting indents reserved
      3. variable of result changed to  valueFromInsertValueContext
      dd33dd99
  2. 30 9月, 2019 4 次提交
    • L
      For checkstyle (#3161) · 58ffbe93
      Liang Zhang 提交于
      * for checkstyle
      
      * refactor SQLLoggerTest
      58ffbe93
    • C
    • J
      fix dcl g4 and fix mysql createuser test case (#3159) · ad53de71
      JingShang Lu 提交于
      * add DAL grammar
      
      * supplement for dal grammar
      
      * fix mysqlkeyword.g4 format
      
      * fix dcl grammar
      
      * fix dcl g4 and fix mysql create user testcase
      ad53de71
    • L
      Simplify and refactor SQLTokenGenerator (#3157) · 7a593f3f
      Liang Zhang 提交于
      * add ParameterBuilderFactory
      
      * group token generator
      
      * add TableMetasAware
      
      * move EncryptCondition's logic from RewriteStatementFactory to WhereEncryptColumnTokenGenerator
      
      * remove EncryptConditions
      
      * rename WhereClauseEncryptConditionEngine to EncryptConditionEngine
      
      * refactor EncryptConditionEngine.createEncryptConditions()
      
      * add ShardingRuleAware & EncryptRuleAware
      
      * refactor SelectEncryptItemTokenGenerator
      
      * add QueryWithCipherColumnAware
      
      * refactor SQLRewriteEngine's constructor
      
      * add SQLTokenGenerators
      
      * refactor SQLTokenGenerators
      
      * avoid to using singleton for SQLTokenGenerator
      
      * move SQLTokenGenerateEngine to builder package
      
      * rename BaseTokenGenerateEngine to SQLTokenGeneratorBuilder
      
      * add ShardingConditionsAware
      
      * remove RewriteStatement.shardingConditions
      
      * refactor InsertGeneratedKeyNameTokenGenerator
      
      * refactor InsertRegularNamesTokenGenerator.isNeedToGenerateSQLToken()
      
      * refactor InsertRegularNamesTokenGenerator
      
      * add PreviousSQLTokensAware to split generate key and encrypt column's SQL token generator
      
      * add GeneratedKeyAware
      
      * remove InsertRewriteStatement.generatedKey
      
      * move InsertRewriteStatement's logic to SQLRewriteEngine
      
      * remove RewriteStatement
      7a593f3f
  3. 29 9月, 2019 3 次提交
  4. 27 9月, 2019 4 次提交
  5. 26 9月, 2019 4 次提交
    • C
    • L
      support query hint context for sharding-proxy (#3086) · 8c17bdd4
      liya 提交于
      * add hint query context for sharding-proxy
      
      * implement HintShowStatusExecutor&HintShowTableStatusExecutor
      
      * complete test for hint in  sharding-proxy
      
      * refactor HintShowTableStatusExecutor.java
      
      * add database_only for HintShowTableStatusExecutor.java
      
      * format HintManager
      
      * delete @Getter on HintShowTableStatusCommand
      
      * Refactor HintManager&ShardingRule&HintShowTableStatusExecutor
      
      * transfer BackendConnection to HintShowTableStatusExecutor
      
      * Refactor HintCommandExecutorFactoryTest
      
      * Refactor HintCommandExecutorFactory
      
      * Refactor HintCommandExecutor use MergedResult
      
      * delete HintShowStatusResult
      
      * Refactor HintManager
      
      * Refactor ShardingCTLShowBackendHandler
      
      * Reactor AbstractHintQueryExecutor
      
      * Refactor hint for sharding-proxy
      
      * delete unused @RequiredArgsConstructor
      
      * Refactor Hintmanager
      
      * Refactor HintShowTableStatusExecutor
      8c17bdd4
    • L
      Rename OptimizedStatement to SQLStatementContext (#3114) · ba366bdc
      Liang Zhang 提交于
      * rename OptimizedStatement to SQLStatementContext
      
      * rename Tables to TablesContext
      
      * move tablecontext to table package
      
      * rename InsertValue to InsertValueContext
      
      * rename GroupBy to GroupByContext
      
      * refactor PaginationTest
      
      * rename OrderBy to OrderByContext
      
      * rename Pagination to PaginationContext
      
      * rename SelectItems to SelectItemsContext
      ba366bdc
    • J
      supplement for dal grammar (#3116) · 4937d602
      JingShang Lu 提交于
      * add DAL grammar
      
      * supplement for dal grammar
      
      * fix mysqlkeyword.g4 format
      4937d602
  6. 25 9月, 2019 5 次提交
  7. 24 9月, 2019 3 次提交
    • A
      Removed unnecessary setter for RouteUnit (#3103) · 21e644ed
      Andrew Usanin 提交于
      21e644ed
    • L
      Move encrypt from optimized module to rewrite module (#3100) · e2cdbe10
      Liang Zhang 提交于
      * change position of EncryptCondition's positionValueMap & positionIndexMap
      
      * move generate EncryptConditions from optimize to rewrite module
      
      * remove EncryptConditionOptimizedStatement.encryptConditions
      
      * move encrypt condition to rewrite module
      
      * remove EncryptWhereOptimizeEngine
      
      * remove useless parameter for EncryptOptimizeEngineFactory.newInstance()
      
      * remove EncryptTransparentOptimizedStatement
      
      * remove EncryptOptimizedStatement
      
      * remove ShardingTransparentOptimizedStatement
      
      * remove ShardingOptimizedStatement
      
      * remove rule parameter for OptimizeEngine.optimize()
      
      * remove EncryptOptimizeEngineFactory
      
      * rename ShardingOptimizeEngineFactory to OptimizedStatementFactory
      
      * rename ShardingSelectOptimizedStatement to SelectOptimizedStatement
      e2cdbe10
    • Z
      Fix SCTL statement execute error with comments (#3093) · 3df4aadf
      zhyee 提交于
      * Fix SCTL statement execute error with comment
      
      * Add  SCTLUtils class to trim sql
      3df4aadf
  8. 23 9月, 2019 5 次提交
    • Fixes #3068 Add a judgment for user's database privileges. (#3079) · c91225b3
      孙不服 提交于
      * 
      1. modify MySQLAuthenticationHandler's login method to return Optional<ProxyUser>.
      2. check response41 database with ProxyUser's database.
      3. add UT.
      
      * resolve conflicts.
      
      * try CI check again.
      
      * 
      1. move schema judgement to MySQLAuthenticationHandler.
      2. modify UT.
      
      * 
      1. modify the input parameter of MySQLAuthenticationHandler.login().
      2. modify UT.
      
      * try CI check again.
      
      * 
      1. add ER_DBACCESS_DENIED_ERROR in MySQLServerErrorCode.
      2. modify the result of MySQLAuthenticationHandler.login() to Optional<MySQLServerErrorCode>.
      3. modify UT classes.
      c91225b3
    • L
      Generic insert statement for Sharding and encrypt on optimize module (#3091) · 0591b067
      Liang Zhang 提交于
      * delete ShardingDropIndexOptimizedStatement
      
      * avoid using ShardingConditionOptimizedStatement
      
      * remove ShardingConditionOptimizedStatement
      
      * decouple GeneratedKey and columnNames
      
      * refactor InsertClauseShardingConditionEngine
      
      * refactor InsertClauseShardingConditionEngine's constructor
      
      * move GeneratedKey from optimize module to route module
      
      * rename package name org.apache.shardingsphere.core.optimize.sharding.segment.select to org.apache.shardingsphere.core.optimize.sharding.segment
      
      * merge ShardingInsertOptimizedStatement and EncryptInsertOptimizedStatement to InsertOptimizedStatement
      
      * rename OptimizedStatement.getSQLStatement() to getSqlStatement
      
      * remove ShardingOptimizeEngine & EncryptOptimizeEngine
      
      * move constant of derived values from optimize module to rewrite module
      
      * Update StandardRoutingEngineTest.java
      
      * Update ComplexRoutingEngineTest.java
      
      * Merge branch 'dev' of https://github.com/apache/incubator-shardingsphere into issue3061
      
      # Conflicts:
      #	sharding-core/sharding-core-route/src/test/java/org/apache/shardingsphere/core/route/type/complex/ComplexRoutingEngineTest.java
      #	sharding-core/sharding-core-route/src/test/java/org/apache/shardingsphere/core/route/type/standard/StandardRoutingEngineTest.java
      0591b067
    • 0856b0d8
    • C
    • Fix a document error. (#3084) · d4f9b7f2
      董宗磊 提交于
      d4f9b7f2
  9. 22 9月, 2019 2 次提交
  10. 21 9月, 2019 1 次提交
  11. 20 9月, 2019 3 次提交
  12. 19 9月, 2019 4 次提交
    • Add unit test for route module (#3066) · a347744c
      杨翊 Sion Yang 提交于
      * For #3047, Add unit test log SQL shard with parameters
      
      * For #3047, Add unit test for SPIRoutingHook
      
      * For #3047, Add unit test for RoutingUnit
      
      * For #3047, Add unit test for RoutingResult
      
      * For #3047, Add unit test for BatchRouteUnit
      
      * For #3047, Add unit test for MasterInstanceBroadcastRoutingEngine
      
      * For #3047, Add unit test for MasterSlaveRouter
      
      * For #3047, Add unit test for ShardingMasterSlaveRouter
      
      * For #3047, Add equals and toString unit test for BatchRouteUnit, RouteUnit and SQLUnit
      
      * For #3047, Refactor StandardRoutingEngineTest
      
      * For #3047, Refactor ComplexRoutingEngineTest
      
      * For #3047, Refactor AbstractSQLRouteTest and for checkstyle
      
      * For #3047, Add assertToString for RoutingUnit and TableUnit
      
      * For #3047, Add unit test for RoutingEngineFactory
      
      * For #3047, Add unit test for insert
      
      * For #3047, Conflict resolution
      
      * For #3047, Add unit test for InlineShardingStrategy
      a347744c
    • Z
      Replace localhost to real ip address (#3056) · e46ba439
      zhyee 提交于
      e46ba439
    • ShardingSphere's avatar
      Redo #2601 (#3065) · 93b8adab
      ShardingSphere 提交于
      * remove RoutingResultValidator
      
      * rename org.apache.shardingsphere.core.route.router.sharding.validator.statement to org.apache.shardingsphere.core.route.router.sharding.validator
      
      * update javadoc
      
      * add judge to whether routed data sources belong to configured data sources
      93b8adab
    • Q
  13. 18 9月, 2019 1 次提交