git-svn-id: https://samskivert.googlecode.com/svn/trunk@87 6335cc39-0255-0410-8fd6-9bcaacd3b74c

This commit is contained in:
mdb
2001-03-04 06:14:14 +00:00
parent b52c0431b6
commit f96b4cc237
@@ -1,5 +1,5 @@
//
// $Id: UserRepository.java,v 1.5 2001/03/02 07:39:32 mdb Exp $
// $Id: UserRepository.java,v 1.6 2001/03/04 06:14:14 mdb Exp $
package com.samskivert.servlet.user;
@@ -269,6 +269,11 @@ public class UserRepository extends MySQLRepository
protected String[] loadNames (int[] userids, String column)
throws SQLException
{
// if userids is zero length, we've got no work to do
if (userids.length == 0) {
return new String[0];
}
// build up the string we need for the query
StringBuffer ids = new StringBuffer();
for (int i = 0; i < userids.length; i++) {