-
Notifications
You must be signed in to change notification settings - Fork 25
Feature/morf 72 extra audit fields #275
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
base: main
Are you sure you want to change the base?
Conversation
@@ -184,7 +184,7 @@ public SqlDialect(String schemaName) { | |||
* @return The statements required to deploy the table and its indexes. | |||
*/ | |||
public Collection<String> tableDeploymentStatements(Table table) { | |||
Builder<String> statements = ImmutableList.<String>builder(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unnecessary type
view.getName() + | ||
" AS (" + | ||
convertStatementToSQL(view.getSelectStatement()) + | ||
")"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unnecessary StringBuilder.
result.append(" ").append(defaultNullOrder()); | ||
|
||
return result.toString().trim(); | ||
return (getSqlFrom(currentOrderByField) + " " + defaultNullOrder()).trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unnecessary StringBuilder.
@@ -1325,7 +1321,7 @@ protected void appendJoin(StringBuilder result, Join join, String innerJoinKeywo | |||
} else { | |||
// MySql supports no ON criteria and ON TRUE, but the other platforms | |||
// don't, so just keep things simple. | |||
result.append(String.format(" ON 1=1")); | |||
result.append(" ON 1=1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant String.format
@@ -2417,13 +2425,29 @@ protected String getLeastFunctionName() { | |||
/** | |||
* Produce SQL for getting the row number of the row in the partition | |||
* | |||
* @return a string representation of the SQL for finding the last day of the month. | |||
* @return a string representation of the SQL for getting the row number of the row in the partition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous change had cut and pasted the wrong JavaDocs without updating it.
@@ -33,71 +35,71 @@ public interface SchemaChangeVisitor { | |||
* | |||
* @param addColumn instance of {@link AddColumn} to visit. | |||
*/ | |||
public void visit(AddColumn addColumn); | |||
void visit(AddColumn addColumn); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant public modifier from interface
SonarCloud Quality Gate failed.
|
No description provided.