alsmanager_lib 2.0.60 → 2.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules.js +5 -5
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -156,20 +156,20 @@ function removeConnector(db_used, id_device, conn_obj) {
|
|
|
156
156
|
//End Manage connectors
|
|
157
157
|
// Manage Storage
|
|
158
158
|
function queryStorageManifactures() {
|
|
159
|
-
var query = "SELECT DISTINCT upper(storage_manifacturer) as marca from device_storages order by storage_manifacturer";
|
|
159
|
+
var query = "SELECT DISTINCT upper(trim(storage_manifacturer)) as marca from device_storages order by storage_manifacturer";
|
|
160
160
|
return query;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
function queryStorageModelsSQLite(marca) {
|
|
164
|
-
var query = "SELECT DISTINCT upper(storage_model) as modello from device_storages ";
|
|
165
|
-
query += "where upper(storage_manifacturer) = " + marca + " ";
|
|
164
|
+
var query = "SELECT DISTINCT upper(trim(storage_model)) as modello from device_storages ";
|
|
165
|
+
query += "where upper(trim(storage_manifacturer)) = '" + marca + "' ";
|
|
166
166
|
query += "order by storage_model";
|
|
167
167
|
return query;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
function queryStorageModelsMySQL(marca) {
|
|
171
|
-
var query = "SELECT DISTINCT upper(storage_model) as modello from device_storages ";
|
|
172
|
-
query += "where upper(storage_manifacturer) = :marca ";
|
|
171
|
+
var query = "SELECT DISTINCT upper(trim(storage_model)) as modello from device_storages ";
|
|
172
|
+
query += "where upper(trim(storage_manifacturer)) = :marca ";
|
|
173
173
|
query += "order by storage_model";
|
|
174
174
|
return query;
|
|
175
175
|
}
|