Skip to content

Commit c55539c

Browse files
committed
adjustment in select
1 parent b5b85a8 commit c55539c

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

simplesql/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 11
99
targetSdkVersion 29
10-
versionCode 20
11-
versionName "1.0.19"
10+
versionCode 21
11+
versionName "1.0.20"
1212

1313
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1414
consumerProguardFiles 'consumer-rules.pro'

simplesql/src/main/java/com/simplesql/simplesql/config/SimpleSQL.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,6 @@ public Select column(String column) {
122122
return this;
123123
}
124124

125-
public Select functionParameter(String column) {
126-
this.columnFunction = column;
127-
return this;
128-
}
129-
130125
public Select limit(int number) {
131126
SQLString = SQLString + " LIMIT " + number;
132127
return this;
@@ -254,7 +249,7 @@ public List execute() {
254249
if (functionParameter) {
255250
if (columnFunction == null || columnFunction.equals(""))
256251
columnFunction = "*";
257-
SQLString.replace(KEY_FUNCTION_PARAMETER, columnFunction);
252+
SQLString = SQLString.replace(KEY_FUNCTION_PARAMETER, fields[0]);
258253
}
259254
SQLString = SQLString + ";";
260255
List lstClasses = new ArrayList<>();

0 commit comments

Comments
 (0)