Scala + SQL code generation generates reserved words
Bug #779132 reported by
Vesa Marttila
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Querydsl |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I generated Q-types based on the schema and I ended up with the following field:
val type = createNumber(
This of course does not compile because "type" is a reserved word.
Changed in querydsl: | |
status: | New → Fix Committed |
To post a comment you must log in.
Fixed in SVN trunk.
Example output :
object QEscapedWords { variable)
def as(variable: String) = new QEscapedWords(
val escapedWords = as("escapedWords")
}
class QEscapedWords(cl: Class[_ <: EscapedWords], md: PathMetadata[_]) extends EntityPathImpl[ EscapedWords] (cl, md) { EscapedWords] , forVariable( variable) )
def this(variable: String) = this(classOf[
def this(parent: Path[_], variable: String) = this(classOf[ EscapedWords] , forProperty(parent, variable))
val `object` = createString( "object" )
val type$ = createString( "type")
val `val` = createString("val")
val `var` = createString("var")
}