Properly case our userid query.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2331 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -148,7 +148,7 @@ public class UserRepository extends JORARepository
|
|||||||
{
|
{
|
||||||
HashIntMap<User> data = new HashIntMap<User>();
|
HashIntMap<User> data = new HashIntMap<User>();
|
||||||
if (userIds.length > 0) {
|
if (userIds.length > 0) {
|
||||||
String query = "where userid in (" + genIdString(userIds) + ")";
|
String query = "where userId in (" + genIdString(userIds) + ")";
|
||||||
for (User user : loadAll(_utable, query)) {
|
for (User user : loadAll(_utable, query)) {
|
||||||
user.setDirtyMask(_utable.getFieldMask());
|
user.setDirtyMask(_utable.getFieldMask());
|
||||||
data.put(user.userId, user);
|
data.put(user.userId, user);
|
||||||
@@ -496,7 +496,7 @@ public class UserRepository extends JORARepository
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Take the passed in int array and create the a string suitable for using in a SQL set query
|
* Take the passed in int array and create the a string suitable for using in a SQL set query
|
||||||
* (I.e., "select foo, from bar where userid in (genIdString(userIds))"; )
|
* (I.e., "select foo, from bar where userId in (genIdString(userIds))"; )
|
||||||
*/
|
*/
|
||||||
protected String genIdString (int[] userIds)
|
protected String genIdString (int[] userIds)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user