19
19
import static org .junit .Assert .assertNull ;
20
20
import static org .junit .Assert .assertTrue ;
21
21
import static org .junit .Assert .fail ;
22
+ import org .junit .Ignore ;
22
23
import org .junit .Test ;
23
24
24
25
public class SelectTest {
@@ -106,6 +107,7 @@ public void testMultiPartColumnNameWithDatabaseNameAndSchemaNameAndTableName() t
106
107
}
107
108
108
109
@ Test
110
+ @ Ignore
109
111
public void testMultiPartColumnNameWithDatabaseNameAndSchemaName () {
110
112
final String statement = "SELECT databaseName.schemaName..columnName FROM tableName" ;
111
113
Select select ;
@@ -127,6 +129,7 @@ public void testMultiPartColumnNameWithDatabaseNameAndTableName() throws Excepti
127
129
}
128
130
129
131
@ Test
132
+ @ Ignore
130
133
public void testMultiPartColumnNameWithDatabaseName () {
131
134
final String statement = "SELECT databaseName...columnName FROM tableName" ;
132
135
Select select ;
@@ -148,6 +151,7 @@ public void testMultiPartColumnNameWithSchemaNameAndTableName() throws Exception
148
151
}
149
152
150
153
@ Test
154
+ @ Ignore
151
155
public void testMultiPartColumnNameWithSchemaName () {
152
156
final String statement = "SELECT schemaName..columnName FROM tableName" ;
153
157
Select select ;
@@ -3192,4 +3196,24 @@ public void testMultiPartNames2() throws JSQLParserException {
3192
3196
public void testMultiPartNames3 () throws JSQLParserException {
3193
3197
assertSqlCanBeParsedAndDeparsed ("SELECT a.*" );
3194
3198
}
3199
+
3200
+ @ Test
3201
+ public void testMultiPartNames4 () throws JSQLParserException {
3202
+ assertSqlCanBeParsedAndDeparsed ("SELECT a.b.c.d.e.f.g.h" );
3203
+ }
3204
+
3205
+ @ Test
3206
+ public void testMultiPartNames5 () throws JSQLParserException {
3207
+ assertSqlCanBeParsedAndDeparsed ("SELECT * FROM a.b.c.d.e.f.g.h" );
3208
+ }
3209
+
3210
+ @ Test
3211
+ public void testMultiPartNamesIssue163 () throws JSQLParserException {
3212
+ assertSqlCanBeParsedAndDeparsed ("SELECT mymodel.name FROM com.myproject.MyModelClass AS mymodel" );
3213
+ }
3214
+
3215
+ @ Test
3216
+ public void testMultiPartNamesIssue608 () throws JSQLParserException {
3217
+ assertSqlCanBeParsedAndDeparsed ("SELECT @@session.tx_read_only" );
3218
+ }
3195
3219
}
0 commit comments