Github user tomatophantastico commented on a diff in the pull request:

    https://github.com/apache/metamodel/pull/150#discussion_r128903688
  
    --- Diff: jdbc/src/test/java/org/apache/metamodel/jdbc/HsqldbTest.java ---
    @@ -417,4 +418,98 @@ public void testInterpretationOfNull() throws 
Exception {
             Connection conn = 
DriverManager.getConnection("jdbc:hsqldb:mem:interpretation_of_null", USERNAME, 
PASSWORD);
             JdbcTestTemplates.interpretationOfNulls(conn);
         }
    +    
    +    public void testCapitalization() throws Exception{
    +      try(Connection connection = 
DriverManager.getConnection("jdbc:hsqldb:mem:different_types_insert", 
USERNAME,PASSWORD);){
    +        
    +
    +        
    +        final JdbcDataContext dcon = new JdbcDataContext(connection);
    +        
    +        final String mixedcap = "MixedCapitalization";
    +        final String idCol = "Id";
    +        final String nameCol =  "name";
    +        final String emailCol = "EMAIL";
    +        final String createTable = "CREATE TABLE \"" + mixedcap + "\" 
(\""+idCol+"\" INTEGER, \""+nameCol+"\" LONGVARCHAR,  \""+emailCol+"\" 
LONGVARCHAR)";
    +        
    +        try(Statement stmt = connection.createStatement();){
    +          
    +          stmt.execute(createTable);
    +          
    +        }
    +        dcon.refreshSchemas();
    +        assertEquals(mixedcap, 
dcon.getDefaultSchema().getTable(0).getName()); 
    +        assertEquals(idCol, 
dcon.getDefaultSchema().getTable(0).getColumn(0).getName());
    +        
    +        
dcon.query().from(mixedcap).select(idCol,nameCol,emailCol).execute();
    +        
    +//        Query query = new Query();
    +//        String subselect = "(select * from \""+mixedcap+"\")";
    +//        query.from(subselect);
    +//        query.select("test");
    +//        
    +//        dcon.executeQuery(query);
    --- End diff --
    
    removed it.
    
    This code should demonstrate some other issue i had, but it should better 
be placed in an other test


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to