Is there any way to determine in JDBC that a column or table has been created using “” notation? The metadata get columns does not seem to return such information.
PS: our customer model has been unfortunately created in such a way 🙁
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the column name is returned in mixed case or all upper then it has been created using quotes.
So if
columnName.equals(columnName.toLowerCase()) == truethen no quotes were used. Or to be more prices: no quotes are needed.Note that this is Postgres specific. Other databases store unquoted names in uppercase, some store them “as-is” without requiring quotes.