Skip to content

Commit

Permalink
Fixed: errors on recreate comments and generate procedures (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarneir authored Nov 27, 2024
1 parent 803bbf7 commit 14300cd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mainClassName = "br.com.bluesoft.bee.Bee"

group = 'br.com.bluesoft.bee'
def artifact = 'bee'
version = '1.104'
version = '1.105'

def javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion;
Expand Down
1 change: 1 addition & 0 deletions src/main/groovy/br/com/bluesoft/bee/model/Procedure.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Procedure implements Validator {
def text_oracle
def text_postgres
def text_mysql
def text_redshift
def schema

List validateWithMetadata(metadataProcedure) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ abstract class BeeSchemaCreator {
def result = "create${temp} table ${table.name} (\n" + columns.join(",\n") + "\n);\n"

if (table.comment) {
result += "comment on table ${table.name} is \"${table.comment}\";\n"
result += "comment on table ${table.name} is '${table.comment}';\n"
}

def comments = table.columns.findAll { it.value.comment }
comments*.value.each {
result += "comment on column ${table.name}.${it.name} is \"${it.comment}\";\n"
result += "comment on column ${table.name}.${it.name} is '${it.comment}';\n"
}

result += "\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class BeeSchemaGeneratorAction implements ActionRunner {
item.text_oracle = schemaNew[field][it.key].text_oracle ?: item.text_oracle
item.text_postgres = schemaNew[field][it.key].text_postgres ?: item.text_postgres
item.text_mysql = schemaNew[field][it.key].text_mysql ?: item.text_mysql
item.text_redshift = schemaNew[field][it.key].text_mysql ?: item.text_redshift
item.text_redshift = schemaNew[field][it.key].text_redshift ?: item.text_redshift
schemaNew[field][it.key] = item
}
}
Expand Down

0 comments on commit 14300cd

Please sign in to comment.