|
@@ -635,7 +635,7 @@ void OCPP_getListVerion()
|
|
|
memset(sql, 0, 100);
|
|
|
memset(zErrMsg, 0, 100);
|
|
|
|
|
|
- strcpy(sql, "select * from ocpp_auth_local order by idx");
|
|
|
+ strcpy(sql, "select * from ocpp_auth_local order by version desc, idx desc limit 1");
|
|
|
|
|
|
/* Execute SQL statement */
|
|
|
rc = sqlite3_exec(db, sql, versioncallback, 0, (char **)&zErrMsg);
|