--- /dev/null
+use Test::More;
+
+plan tests => 3;
+
+use lib qw(t/lib);
+
+use_ok('DBICTest');
+
+ok(DBICTest::FourKeys->retrieve(1,2,3,4), "retrieve multiple pks without hash");
+ok(DBICTest::FourKeys->retrieve(5,4,3,6), "retrieve multiple pks without hash");
\ No newline at end of file
CREATE TABLE twokeys (artist INTEGER NOT NULL, cd INTEGER NOT NULL,
PRIMARY KEY (artist, cd) );
+CREATE TABLE fourkeys (foo INTEGER NOT NULL, bar INTEGER NOT NULL,
+ hello INTEGER NOT NULL, goodbye INTEGER NOT NULL,
+ PRIMARY KEY (foo, bar, hello, goodbye) );
+
CREATE TABLE onekey (id INTEGER NOT NULL PRIMARY KEY,
artist INTEGER NOT NULL, cd INTEGER NOT NULL );
INSERT INTO twokeys (artist, cd) VALUES (2, 2);
+INSERT INTO fourkeys (foo, bar, hello, goodbye) VALUES (1, 2, 3, 4);
+
+INSERT INTO fourkeys (foo, bar, hello, goodbye) VALUES (5, 4, 3, 6);
+
INSERT INTO onekey (id, artist, cd) VALUES (1, 1, 1);
INSERT INTO onekey (id, artist, cd) VALUES (2, 1, 2);
#DBICTest::TwoKeys->has_a(artist => 'SweetTest::Artist');
#DBICTest::TwoKeys->has_a(cd => 'SweetTest::CD');
+package DBICTest::FourKeys;
+
+use base 'DBICTest';
+
+DBICTest::FourKeys->table('fourkeys');
+DBICTest::FourKeys->add_columns(qw/foo bar hello goodbye/);
+DBICTest::FourKeys->set_primary_key(qw/foo bar hello goodbye/);
+
package DBICTest::OneKey;
use base 'DBICTest';
DBICTest::OneKey->table('onekey');
DBICTest::OneKey->add_columns(qw/id artist cd/);
-DBICTest::TwoKeys->set_primary_key('id');
+DBICTest::OneKey->set_primary_key('id');
1;