isColumnNameDelimited

18 views
Skip to first unread message

Yuanqiang Liao

unread,
Mar 8, 2021, 9:00:25 PM3/8/21
to mybatis-user

What does the field "isColumnNameDelimited" means ?

How to use it?

Jeff Butler

unread,
Mar 9, 2021, 6:34:44 AM3/9/21
to mybati...@googlegroups.com
SQL columns must be delimited in several cases:

- If the column name contains whitespace
- If the column name is a different case than the database default
- If the column name is an SQL reserved word

The generator will automatically delimit column names that contain spaces. There is a context setting that will cause the generator to delimit SQL reserved words. There is also a column override property where you can manually force the generator to delimit a column name.

If the column should be delimited (if "isColumnNameDelimited" is true), then the generator will surround the column name with quotes in the generated SQL.

Jeff Butler


On Mon, Mar 8, 2021 at 9:00 PM Yuanqiang Liao <lia...@gmail.com> wrote:

What does the field "isColumnNameDelimited" means ?

How to use it?

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/d5112bdf-dabf-4957-b0ed-999954cb0b8fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages