★ wanayoo — archive 1999 https://github.com/JSQLParser/JSqlParser/pull/1045/commitsNouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation visitor framework #1045

Open
wants to merge 263 commits into
base: master
from
Open
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jul 8, 2020

  1. * use new methods within testcases

    * add some with-methods
    * add getter/setter named after the field without abbrivation
    gitmotte committed Jul 8, 2020
  2. compare object tree

    gitmotte committed Jul 8, 2020
  3. compare object tree

    gitmotte committed Jul 8, 2020
  4. * fix ObjectTreeToStringStyle

    * compare object tree
    gitmotte committed Jul 8, 2020
  5. remove casts not needed

    gitmotte committed Jul 8, 2020
  6. * use new methods within testcases

    * add some "set" "with" "add" methods missing
    gitmotte committed Jul 8, 2020

Commits on Jul 10, 2020

  1. remove test-classes from ReflectionModelTest

    gitmotte committed Jul 10, 2020
  2. remove visitoradapter-classes from ReflectionModelTest

    gitmotte committed Jul 10, 2020
  3. * add SelectDeParser(StringBuilder)

    * remove overriding setters/getters of buffer
    #1007
    gitmotte committed Jul 10, 2020

Commits on Jul 11, 2020

  1. push to synbee-contrib

    org.synbee.commons.contrib:jsqlparser:3.2-0.0.6-SNAPSHOT
    gitmotte committed Jul 11, 2020

Commits on Jul 12, 2020

  1. remove overrides of

    * getCause
    * printStackTrace variants
    
    why add an additional cause ?
    
    set cause.getMessage() the message within constructor
    JSQLParserException(Throwable cause), othewise cause.toString() will be
    set as default.
    gitmotte committed Jul 12, 2020
  2. add ValidationVisitor showcase

    gitmotte committed Jul 12, 2020
  3. remove overrides of

    * getCause
    * printStackTrace variants
    
    why add an additional cause ?
    
    set cause.getMessage() the message within constructor
    JSQLParserException(Throwable cause), othewise cause.toString() will be
    set as default.
    gitmotte committed Jul 12, 2020
  4. visit(ShowTablesStatement)

    gitmotte committed Jul 12, 2020
  5. copyright/license

    gitmotte committed Jul 12, 2020

Commits on Jul 16, 2020

  1. add ValidationVisitor showcase

    gitmotte committed Jul 16, 2020
  2. remove overrides of

    * getCause
    * printStackTrace variants
    
    why add an additional cause ?
    
    set cause.getMessage() the message within constructor
    JSQLParserException(Throwable cause), othewise cause.toString() will be
    set as default.
    gitmotte committed Jul 16, 2020
  3. visit(ShowTablesStatement)

    gitmotte committed Jul 16, 2020
  4. add tests for ValidationUtil

    gitmotte committed Jul 16, 2020
  5. + implements OrderByVisitor

    gitmotte committed Jul 16, 2020
  6. split Expressionvalidator which implements both ItemsListVisitor and

    Expressionvisitor into Expressionvalidator and ItemListValidator
    gitmotte committed Jul 16, 2020
  7. implement upsertvalidator

    gitmotte committed Jul 16, 2020

Commits on Jul 17, 2020

  1. add copyright

    gitmotte committed Jul 17, 2020
  2. * switch to new method forced by

    ValidationCapability.validate(ValidationContext context,
    Consumer<String> errorMessageConsumer);
    * add AllowedTypesValidation
    gitmotte committed Jul 17, 2020
  3. add FeatureConfiguration

    gitmotte committed Jul 17, 2020
  4. repair pom.xml

    gitmotte committed Jul 17, 2020
  5. repair pom.xml

    gitmotte committed Jul 17, 2020
  6. repair pom.xml

    gitmotte committed Jul 17, 2020
  7. repair pom.xml

    gitmotte committed Jul 17, 2020

Commits on Jul 18, 2020

  1. * make FeatureConfiguration not a singleton any more

    * CCJSqlParser extends AbstractJSqlParser<CCJSqlParser>
    * add FeaturesAllowed for testing against features allowed
    gitmotte committed Jul 18, 2020

Commits on Jul 19, 2020

  1. implement some Validators

    gitmotte committed Jul 19, 2020
  2. basic implementation of DatabaseMetaDataValidation /

    JdbcDatabaseMetaDataCapability
    gitmotte committed Jul 19, 2020
  3. * moving classes to sub-packages

    * fixing some bugs
    gitmotte committed Jul 19, 2020
  4. repair pom.xml

    gitmotte committed Jul 19, 2020
  5. add and fix validations

    gitmotte committed Jul 19, 2020

Commits on Jul 20, 2020

  1. add javadoc

    gitmotte committed Jul 20, 2020
  2. * force definition of ```public String getMessage(Feature feature)```

    in FeatureSetValidation
    * allow all objects as feature-value - this may be needed by the parser,
    if a none-boolean configuration is needed
    gitmotte committed Jul 20, 2020
  3. impl.

    * SelectValidator.visit(PlainSelect)
    * OrderByValidator
    gitmotte committed Jul 20, 2020
  4. add Version-enums

    gitmotte committed Jul 20, 2020
  5. impl.

    * InsertValidator
    * multiple implementations of visit(SubSelect) -> forward to
    SelectValidator
    * add some known features to SqlServerVersion
    gitmotte committed Jul 20, 2020

Commits on Jul 22, 2020

  1. more user friendly names

    gitmotte committed Jul 22, 2020
  2. javadoc

    gitmotte committed Jul 22, 2020
  3. add subtypes for ValidationException

    * ValidationParseException
    * DatabaseException
    * UnexpectedValidationException
    and change Set<String> errors to Set<ValidationException> for collect.
    gitmotte committed Jul 22, 2020
  4. javadoc & rename exception

    gitmotte committed Jul 22, 2020
  5. rename method

    gitmotte committed Jul 22, 2020
  6. extract parsing task into package - private class for {@link

    ValidationUtil} to parse the statements
     * within it's own {@link ValidationCapability}
    gitmotte committed Jul 22, 2020

Commits on Jul 23, 2020

Commits on Jul 24, 2020

  1. implement toString() for

    * ValidationError
    * ValidationException
    gitmotte committed Jul 24, 2020
  2. add simple caching

    gitmotte committed Jul 24, 2020
  3. * implement GroupByValidator

    gitmotte committed Jul 24, 2020
  4. implement merge-validator

    gitmotte committed Jul 24, 2020
  5. + validateOptionalItemsList

    + implement ReplaceValidator
    + use validateOptionalColumns, validateOptionalExpression where possible
    gitmotte committed Jul 24, 2020
  6. * remove validateOptionalColumns -> switch to

    validateOptionalExpressions
    * move validateOptionalOrderByElements to AbstractValidator
    * add validateOptional in AbstractValidator
    * add validateOptionalList in AbstractValidator
    gitmotte committed Jul 24, 2020
  7. + SetStatementValidator

    gitmotte committed Jul 24, 2020
  8. + ValuesStatementValidator

    gitmotte committed Jul 24, 2020
  9. + UseStatementValidator

    gitmotte committed Jul 24, 2020
  10. * implement UpdateValidator

    gitmotte committed Jul 24, 2020
  11. * implement UpdateValidator

    gitmotte committed Jul 24, 2020
  12. * add Feature.jdbcParameter, Feature.jdbcNamedParameter, to all

    featuresets
    * + Version.getFeaturesClone
    * add javadoc to Version-enum-constructors
    gitmotte committed Jul 24, 2020
  13. + validateOptionalFeature

    gitmotte committed Jul 24, 2020
  14. * implement DeleteValidator

    gitmotte committed Jul 24, 2020
  15. ...

    gitmotte committed Jul 24, 2020
  16. fix typo

    gitmotte committed Jul 24, 2020

Commits on Jul 25, 2020

  1. small optimization

    gitmotte committed Jul 25, 2020
  2. * move method getFeaturesClone to FeatureSet

    * implement join - validation
    * add copy(), add(Collection), remove(*) methods to FeaturesAllowed
    gitmotte committed Jul 25, 2020
  3. implementations

    gitmotte committed Jul 25, 2020
  4. bugfix - merging the errors

    gitmotte committed Jul 25, 2020

Commits on Jul 31, 2020

  1. * add javadoc

    * add features to *Version-files
    gitmotte committed Jul 31, 2020
  2. extract methods isNotEmpty

    gitmotte committed Jul 31, 2020
  3. check for isNotEmpty

    gitmotte committed Jul 31, 2020

Commits on Aug 3, 2020

  1. always parse net.sf.jsqlparser.statement.Statements and validate the

    list of included net.sf.jsqlparser.statement.Statement's
    gitmotte committed Aug 3, 2020

Commits on Aug 4, 2020

  1. add known mariadb features

    gitmotte committed Aug 4, 2020
  2. Feature.setOperation, Feature.setOperationUnion,

    Feature.setOperationIntersect, Feature.setOperationExcept,
    
                        for MariaDb
    gitmotte committed Aug 4, 2020
  3. add features to SQLServer

    gitmotte committed Aug 4, 2020

Commits on Aug 26, 2020

  1. @override() -> @override

    gitmotte committed Aug 26, 2020
  2. * an extensible validation visitor framework (ValidationCapability and

    its subtypes FeatureSetValidation, DatabaseMetaDataValidation,
    AllowedTypesValidation)
    * FeatureConfiguration/Feature/FeatureSet class
    
    new packages
    * net.sf.jsqlparser.util.validation
    * net.sf.jsqlparser.parser.feature
    
    ------
    
    history:
    * fresh clone from JSQLParser/JSqlParser (master) -> master.validate
    * (Merge the work on this issue done in 'github.validate' into
    master.validate)
    
    #1005
    gitmotte committed Aug 26, 2020
  3. Merge branch 'master' of https://github.com/JSQLParser/JSqlParser.git

    …into origin.orig/master
    gitmotte committed Aug 26, 2020

Commits on Sep 11, 2020

  1. * implement MySqlVersion

    * replace feature Feature.dropIfExists by features dropTableIfExists,
    dropIndexIfExists, dropViewIfExists, dropSchemaIfExists,
    dropSequenceIfExists
    * add methods FeatureSet.getNotContained FeatureSet.retainAll
    gitmotte committed Sep 11, 2020
  2. Merge branch 'JSQLParser.master/master' into master.validate

    gitmotte committed Sep 11, 2020
  3. add unit-test

    gitmotte committed Sep 11, 2020

Commits on Sep 14, 2020

  1. + add unittests for

    * UpdateValidator
    * DeleteValidator
    add stubs for all other Validator-classes
    
    + ModifyableFeatureSet
    gitmotte committed Sep 14, 2020
  2. add some utility-methods in ValidationTestAsserts

    gitmotte committed Sep 14, 2020

Commits on Sep 15, 2020

  1. remote Feature.insertReturningExpressionList for Oracle -

    returning_clause requires INTO clause (only PL/SQL)
    gitmotte committed Sep 15, 2020
  2. add some more select validation tests

    gitmotte committed Sep 15, 2020
  3. add DropValidatorTests

    gitmotte committed Sep 15, 2020
  4. add DropValidatorTests

    gitmotte committed Sep 15, 2020
  5. add CreateTableValidatorTests

    gitmotte committed Sep 15, 2020
  6. add ExpressionValidatorTests

    gitmotte committed Sep 15, 2020

Commits on Sep 16, 2020

  1. add OrderByValidatorTest

    gitmotte committed Sep 16, 2020
  2. use isNotEmpty

    gitmotte committed Sep 16, 2020
  3. remove @ignore - test is ok

    gitmotte committed Sep 16, 2020
  4. * implement MergeValidatorTest

    * implement ReplaceValidatorTest
    * implement StatementValidatorTest
    gitmotte committed Sep 16, 2020

Commits on Sep 18, 2020

  1. rename

    * ValidationUtil -> Validation
    * ValidatorUtil -> ValidationUtil
    add testcases for ValidationUtil
    gitmotte committed Sep 18, 2020
  2. checkstyle fix

    gitmotte committed Sep 18, 2020
  3. add copyright statement

    gitmotte committed Sep 18, 2020

Commits on Sep 21, 2020

  1. * add ExecuteValidatorTest

    * as there is a difference between execute <procedure> and execute
    [immediate] <dynamic sql> with USING expr, ... remove support for
    execute on MYSQL, MARIADB, ORACLE
    gitmotte committed Sep 21, 2020
  2. add upsertvalidatortest

    gitmotte committed Sep 21, 2020
  3. add GrantValidatorTest

    gitmotte committed Sep 21, 2020
  4. add AlterViewValidatorTest

    gitmotte committed Sep 21, 2020
  5. add AlterValidatorTest

    gitmotte committed Sep 21, 2020
  6. fix formatting

    gitmotte committed Sep 21, 2020
  7. add validate commit

    gitmotte committed Sep 21, 2020
  8. add validate block

    gitmotte committed Sep 21, 2020
  9. add DeclareStatementValidatorTest

    gitmotte committed Sep 21, 2020
  10. let NamesLookup implement UnaryOperator<String>

    gitmotte committed Sep 21, 2020
  11. let NamesLookup implement UnaryOperator<String>

    gitmotte committed Sep 21, 2020

Commits on Sep 23, 2020

  1. add validation for NamedObject not existing

    gitmotte committed Sep 23, 2020

Commits on Sep 24, 2020

  1. fix typo

    gitmotte committed Sep 24, 2020
  2. add trigger, alias

    return null, instead of throwing exception, if not found
    gitmotte committed Sep 24, 2020

Commits on Sep 27, 2020

Commits on Sep 28, 2020

  1. fix compile error

    gitmotte committed Sep 28, 2020

Commits on Sep 29, 2020

  1. fix columnExists check - depending on the statement the prefix is an

    alias, a table/view or it has no prefix (need to lookup within all
    related tables/views)
    gitmotte committed Sep 29, 2020
  2. fix javadoc warnings

    gitmotte committed Sep 29, 2020
You can’t perform that action at this time.