Revision 31128 branches/v2_0_0_prep/libraries/libFMap_daldb/src/org/gvsig/fmap/dal/store/jdbc/JDBCHelper.java
JDBCHelper.java | ||
---|---|---|
936 | 936 |
public String compoundLimitAndOffset(long limit, long offset) { |
937 | 937 |
StringBuilder sql = new StringBuilder(); |
938 | 938 |
// limit |
939 |
if (limit >= 1) {
|
|
939 |
if (limit > 0) {
|
|
940 | 940 |
sql.append(" limit "); |
941 | 941 |
sql.append(limit); |
942 | 942 |
sql.append(' '); |
943 | 943 |
} |
944 | 944 |
|
945 | 945 |
// offset |
946 |
if (offset >= 1) {
|
|
946 |
if (offset > 0) {
|
|
947 | 947 |
sql.append(" offset "); |
948 | 948 |
sql.append(offset); |
949 | 949 |
sql.append(' '); |
Also available in: Unified diff