mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 12:33:18 +00:00
Use no-table forms for DatabaseManager query and querySingle methods
git-svn-id: http://scm.dspace.org/svn/repo/trunk@189 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -275,7 +275,7 @@ public class DatabaseManagerTest extends TestCase
|
|||||||
// Get all the rows
|
// Get all the rows
|
||||||
context = new Context();
|
context = new Context();
|
||||||
TableRowIterator iterator = DatabaseManager.query
|
TableRowIterator iterator = DatabaseManager.query
|
||||||
(context, TABLENAME, "select * from TestTable order by id");
|
(context, "select * from TestTable order by id");
|
||||||
|
|
||||||
// Loop through all entries
|
// Loop through all entries
|
||||||
int test = start;
|
int test = start;
|
||||||
@@ -291,7 +291,7 @@ public class DatabaseManagerTest extends TestCase
|
|||||||
|
|
||||||
// The same thing in reverse order
|
// The same thing in reverse order
|
||||||
iterator = DatabaseManager.query
|
iterator = DatabaseManager.query
|
||||||
(context, TABLENAME, "select * from TestTable order by id desc");
|
(context, "select * from TestTable order by id desc");
|
||||||
|
|
||||||
// Loop through all entries
|
// Loop through all entries
|
||||||
test = max - 1;
|
test = max - 1;
|
||||||
|
Reference in New Issue
Block a user