projects
/
mir.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfixes...
[mir.git]
/
source
/
mir
/
storage
/
Database.java
diff --git
a/source/mir/storage/Database.java
b/source/mir/storage/Database.java
index
a7c116b
..
37c322a
100755
(executable)
--- a/
source/mir/storage/Database.java
+++ b/
source/mir/storage/Database.java
@@
-1011,7
+1011,9
@@
public class Database implements StorageObject {
throws SQLException,StorageObjectException
{
long startTime = System.currentTimeMillis();
throws SQLException,StorageObjectException
{
long startTime = System.currentTimeMillis();
- String sql = "SELECT count(*) FROM "+ theTable + " where " + where;
+ String sql = "SELECT Count(*) FROM "+ theTable;
+ if (where != null && !(where.length() == 0))
+ sql = sql + " where " + where;
Connection con = null;
Statement stmt = null;
int result = 0;
Connection con = null;
Statement stmt = null;
int result = 0;