midb 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/midb/server_model.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b37dd9b038aa5425ec0fc5dfd4295eec61cca3ad
|
4
|
+
data.tar.gz: 3390325a24bae8e546be1d5a78c85d3fbebf7afb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 053718879b227621716eecb7b74ed52b26a53efa73a30e4963951671e72cf10d93fb68cc70ad0c61f02864b21b6e59bb9eb39170c944034561ac1a9914c6d0ae
|
7
|
+
data.tar.gz: 2ed82d2e79b8b63ab4753cd7d55009065a9b9549c438a22a6a9b0268a043778cd9090b4a3c60fffb180b9a4b724662355fdec7dad3a3c5fb2b904b1266b10ee0
|
data/lib/midb/server_model.rb
CHANGED
@@ -228,7 +228,7 @@ module MIDB
|
|
228
228
|
dbe = MIDB::DbengineModel.new()
|
229
229
|
dblink = dbe.connect()
|
230
230
|
rows = dbe.query(dblink, "SELECT * FROM #{self.get_structure.values[0].split('/')[0]} WHERE id=#{id};")
|
231
|
-
if
|
231
|
+
if dbe.length(rows) > 0
|
232
232
|
rows.each do |row|
|
233
233
|
jso[row["id"]] = self.get_structure
|
234
234
|
|