Skip to content

Commit

Permalink
add a primary key to the unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 9, 2011
1 parent 1c98859 commit 506a11e
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -52,9 +52,6 @@
import org.springframework.jdbc.core.ConnectionCallback;
import org.springframework.jdbc.core.JdbcTemplate;

/**
*
*/
public class TriggerRouterServiceTest extends AbstractDatabaseTest {

public static final String TEST_TRIGGERS_TABLE = "test_triggers_table";
Expand Down Expand Up @@ -361,7 +358,7 @@ public void testBinaryColumnTypesForDerby() {
} catch (Exception e) {
}
getJdbcTemplate()
.update("create table test_derby_binary_types (id integer, data VARCHAR (100) FOR BIT DATA, data2 CHAR(12) FOR BIT DATA)");
.update("create table test_derby_binary_types (id integer, data VARCHAR (100) FOR BIT DATA, data2 CHAR(12) FOR BIT DATA, PRIMARY KEY (id))");

TriggerRouter trouter = new TriggerRouter();
Trigger trigger = trouter.getTrigger();
Expand Down

0 comments on commit 506a11e

Please sign in to comment.