From 562979c4a8fe47952edf7986d4144624e41630f7 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 4 Dec 2006 02:42:57 +0000 Subject: add unit tests for active record and sqlmap --- tests/simple_unit/SqlMap/maps/sqlite/Complex.xml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/simple_unit/SqlMap/maps/sqlite/Complex.xml (limited to 'tests/simple_unit/SqlMap/maps/sqlite/Complex.xml') diff --git a/tests/simple_unit/SqlMap/maps/sqlite/Complex.xml b/tests/simple_unit/SqlMap/maps/sqlite/Complex.xml new file mode 100644 index 00000000..f6da811d --- /dev/null +++ b/tests/simple_unit/SqlMap/maps/sqlite/Complex.xml @@ -0,0 +1,23 @@ + + + + + + + select Account_ID from Accounts where Account_ID = #obj.Map.Id# + + + + insert into Accounts + (Account_ID, Account_FirstName, Account_LastName, Account_Email) + values + (#obj.Map.acct.Id#, #obj.Map.acct.FirstName#, #obj.Map.acct.LastName#, #obj.Map.acct.EmailAddress:Varchar:no_email@provided.com# + ) + + + + + + -- cgit v1.2.3