Quote table names in squeryl

I have a table called group in mysql db. When I map this table to squeryl, I get SQL syntax errors because the group of table names is not quoted (must be selected * from `group`).

Is there a way to pass squeryl to quote some table names?

+6
scala squeryl
source share
2 answers

GROUP is a reserved word in SQL, so I recommend renaming your table to another. (I assume this is the cause of this problem.)

+2
source share

You tried:

val groups = table[Group]("`group`") 

?

+2
source share

All Articles