isColumnNameDelimited

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

isColumnNameDelimited

Yuanqiang Liao

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/d5112bdf-dabf-4957-b0ed-999954cb0b8fn%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: isColumnNameDelimited

Jeff Butler
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 <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/d5112bdf-dabf-4957-b0ed-999954cb0b8fn%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAKpaNj7eMQhFbNFV5LyoWHRfJiyeBKCrEp3ttxLXhS38D64vpg%40mail.gmail.com.