title: Upgraded to Intellij 2018.1 and now I'm getting an error for public static final String constants that are referenced in SQL code
body: <p>All my classes that have public static final String NAME = "value" that are used in SQL queries are now getting a compiler error " or DELIMITER expected, got 'lastname'". </p>
  
  <p><a href="https://i.stack.imgur.com/p5gAz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p5gAz.jpg" alt="enter image description here"></a></p>
  
  <p>You can also find the code below in case it helps replicate it. </p>
  
  <pre><code>public class PeopleSQL
  {
      public static final String ID_COL = "id";
      public static final String FIRSTNAME_COL = "firstname";
      public static final String LASTNAME_COL = "lastname";
  
      public static void getListOfPeople(Connection connection) throws RanaSQLException
      {
          PreparedStatement statement = null;
          ResultSet result = null;
  
          try
          {
              statement = connection.prepareStatement("SELECT " + ID_COL + ", " + LASTNAME_COL + " FROM people");
              result = statement.executeQuery();
  
          } catch (SQLException e) {
              e.printStackTrace();
          } finally {
              try
              {
                  result.close();
                  statement.close();
              } catch (SQLException e) {
                  e.printStackTrace();
              }
          }
      }
  }
  
  
  class People
  {
  
  }
  </code></pre>
  
  <p>And yes I've filed a bug report.</p>