@@ -109,17 +109,17 @@ public void helpSelectInto_Case5569Processor( boolean doBatching, boolean doBulk
109
109
Arrays .asList (new Object [] { "2" , new Integer (2 ), Boolean .TRUE , new Double (2 ) })}); //$NON-NLS-1$
110
110
111
111
if (doBulkInsert ) {
112
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES (...)" , //$NON-NLS-1$
112
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES (...)" , //$NON-NLS-1$
113
113
new List [] { Arrays .asList (new Object [] { new Integer (2 )})});
114
114
}
115
115
else
116
116
if (doBatching ) {
117
117
dataManager .addData ("BatchedUpdate{I,I}" , //$NON-NLS-1$
118
118
new List [] { Arrays .asList (new Object [] { new Integer (2 )})});
119
119
} else {
120
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('1', 1, FALSE, 1.0)" , //$NON-NLS-1$
120
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('1', 1, FALSE, 1.0)" , //$NON-NLS-1$
121
121
new List [] { Arrays .asList (new Object [] { new Integer (1 )})});
122
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('2', 2, TRUE, 2.0)" , //$NON-NLS-1$
122
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('2', 2, TRUE, 2.0)" , //$NON-NLS-1$
123
123
new List [] { Arrays .asList (new Object [] { new Integer (1 )})});
124
124
}
125
125
@@ -140,8 +140,8 @@ public void helpSelectInto_Case5569Processor( boolean doBatching, boolean doBulk
140
140
if ( !doBulkInsert && doBatching ) {
141
141
BatchedUpdateCommand bu = (BatchedUpdateCommand )dataManager .getCommandHistory ().get (1 );
142
142
assertEquals (2 , bu .getUpdateCommands ().size ());
143
- assertEquals ( "INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('1', 1, FALSE, 1.0)" , bu .getUpdateCommands ().get (0 ).toString () ); //$NON-NLS-1$
144
- assertEquals ( "INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('2', 2, TRUE, 2.0)" , bu .getUpdateCommands ().get (1 ).toString () ); //$NON-NLS-1$
143
+ assertEquals ( "INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('1', 1, FALSE, 1.0)" , bu .getUpdateCommands ().get (0 ).toString () ); //$NON-NLS-1$
144
+ assertEquals ( "INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('2', 2, TRUE, 2.0)" , bu .getUpdateCommands ().get (1 ).toString () ); //$NON-NLS-1$
145
145
}
146
146
}
147
147
@@ -165,7 +165,7 @@ public void helpSelectInto_Case5569Processor( boolean doBatching, boolean doBulk
165
165
QueryMetadataInterface metadata = RealMetadataFactory .createTransformationMetadata (metadataStore , "foo" );
166
166
167
167
HardcodedDataManager dataManager = new HardcodedDataManager ();
168
- dataManager .addData ("INSERT INTO pm1.g1 (pm1.g1. e1, pm1.g1. e2) VALUES (...)" , //$NON-NLS-1$
168
+ dataManager .addData ("INSERT INTO pm1.g1 (e1, e2) VALUES (...)" , //$NON-NLS-1$
169
169
new List [] { Arrays .asList (new Object [] { new Integer (1 ) })});
170
170
171
171
String sql = "SELECT 1, convert(1, float) INTO pm1.g1" ; //$NON-NLS-1$
@@ -199,7 +199,7 @@ public void helpSelectInto_Case5569Processor( boolean doBatching, boolean doBulk
199
199
QueryMetadataInterface metadata = RealMetadataFactory .createTransformationMetadata (metadataStore , "foo" );
200
200
201
201
HardcodedDataManager dataManager = new HardcodedDataManager ();
202
- dataManager .addData ("INSERT INTO pm1.g1 (pm1.g1. e1, pm1.g1. e2) VALUES (1, 1.0)" , //$NON-NLS-1$
202
+ dataManager .addData ("INSERT INTO pm1.g1 (e1, e2) VALUES (1, 1.0)" , //$NON-NLS-1$
203
203
new List [] { Arrays .asList (new Object [] { new Integer (1 ) })});
204
204
205
205
String sql = "SELECT 1, convert(1, float) INTO pm1.g1" ; //$NON-NLS-1$
@@ -259,22 +259,22 @@ public void helpInsertIntoWithSubquery( Capability cap ) {
259
259
if (cap != null ) {
260
260
switch (cap ) {
261
261
case INSERT_WITH_ITERATOR :
262
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES (...)" , //$NON-NLS-1$
262
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES (...)" , //$NON-NLS-1$
263
263
new List [] { Arrays .asList (new Object [] { new Integer (2 )})});
264
264
break ;
265
265
case BATCHED_UPDATES :
266
266
dataManager .addData ("BatchedUpdate{I,I}" , //$NON-NLS-1$
267
267
new List [] { Arrays .asList (new Object [] { new Integer (2 )})});
268
268
break ;
269
269
case INSERT_WITH_QUERYEXPRESSION :
270
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) SELECT pm1.g1.e1, pm1.g1.e2, pm1.g1.e3, pm1.g1.e4 FROM pm1.g1" , //$NON-NLS-1$
270
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) SELECT pm1.g1.e1, pm1.g1.e2, pm1.g1.e3, pm1.g1.e4 FROM pm1.g1" , //$NON-NLS-1$
271
271
new List [] { Arrays .asList (new Object [] { new Integer (2 )})});
272
272
break ;
273
273
}
274
274
} else {
275
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('1', 1, FALSE, 1.0)" , //$NON-NLS-1$
275
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('1', 1, FALSE, 1.0)" , //$NON-NLS-1$
276
276
new List [] { Arrays .asList (new Object [] { new Integer (1 )})});
277
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('2', 2, TRUE, 2.0)" , //$NON-NLS-1$
277
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('2', 2, TRUE, 2.0)" , //$NON-NLS-1$
278
278
new List [] { Arrays .asList (new Object [] { new Integer (1 )})});
279
279
}
280
280
@@ -295,8 +295,8 @@ public void helpInsertIntoWithSubquery( Capability cap ) {
295
295
if ( cap == Capability .BATCHED_UPDATES ) {
296
296
BatchedUpdateCommand bu = (BatchedUpdateCommand )dataManager .getCommandHistory ().get (1 );
297
297
assertEquals (2 , bu .getUpdateCommands ().size ());
298
- assertEquals ( "INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('1', 1, FALSE, 1.0)" , bu .getUpdateCommands ().get (0 ).toString () ); //$NON-NLS-1$
299
- assertEquals ( "INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('2', 2, TRUE, 2.0)" , bu .getUpdateCommands ().get (1 ).toString () ); //$NON-NLS-1$
298
+ assertEquals ( "INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('1', 1, FALSE, 1.0)" , bu .getUpdateCommands ().get (0 ).toString () ); //$NON-NLS-1$
299
+ assertEquals ( "INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('2', 2, TRUE, 2.0)" , bu .getUpdateCommands ().get (1 ).toString () ); //$NON-NLS-1$
300
300
}
301
301
}
302
302
@@ -339,17 +339,17 @@ public void helpInsertIntoWithSubquery2( boolean doBatching, boolean doBulkInser
339
339
Arrays .asList (new Object [] { "2" , new Integer (2 ), Boolean .TRUE , new Double (2 ) })}); //$NON-NLS-1$
340
340
341
341
if (doBulkInsert ) {
342
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES (...)" , //$NON-NLS-1$
342
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES (...)" , //$NON-NLS-1$
343
343
new List [] { Arrays .asList (new Object [] { new Integer (4 )})});
344
344
}
345
345
else
346
346
if (doBatching ) {
347
347
dataManager .addData ("BatchedUpdate{I,I}" , //$NON-NLS-1$
348
348
new List [] { Arrays .asList (new Object [] { new Integer (2 )})});
349
349
} else {
350
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('1', 1, FALSE, 1.0)" , //$NON-NLS-1$
350
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('1', 1, FALSE, 1.0)" , //$NON-NLS-1$
351
351
new List [] { Arrays .asList (new Object [] { new Integer (1 )})});
352
- dataManager .addData ("INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('2', 2, TRUE, 2.0)" , //$NON-NLS-1$
352
+ dataManager .addData ("INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('2', 2, TRUE, 2.0)" , //$NON-NLS-1$
353
353
new List [] { Arrays .asList (new Object [] { new Integer (1 )})});
354
354
}
355
355
@@ -371,8 +371,8 @@ public void helpInsertIntoWithSubquery2( boolean doBatching, boolean doBulkInser
371
371
if ( !doBulkInsert && doBatching ) {
372
372
BatchedUpdateCommand bu = (BatchedUpdateCommand )dataManager .getCommandHistory ().get (2 );
373
373
assertEquals (2 , bu .getUpdateCommands ().size ());
374
- assertEquals ( "INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('1', 1, FALSE, 1.0)" , bu .getUpdateCommands ().get (0 ).toString () ); //$NON-NLS-1$
375
- assertEquals ( "INSERT INTO pm1.g2 (pm1.g2. e1, pm1.g2. e2, pm1.g2. e3, pm1.g2. e4) VALUES ('2', 2, TRUE, 2.0)" , bu .getUpdateCommands ().get (1 ).toString () ); //$NON-NLS-1$
374
+ assertEquals ( "INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('1', 1, FALSE, 1.0)" , bu .getUpdateCommands ().get (0 ).toString () ); //$NON-NLS-1$
375
+ assertEquals ( "INSERT INTO pm1.g2 (e1, e2, e3, e4) VALUES ('2', 2, TRUE, 2.0)" , bu .getUpdateCommands ().get (1 ).toString () ); //$NON-NLS-1$
376
376
}
377
377
}
378
378
0 commit comments