pampa_workers 1.1.41 → 1.1.42
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.
- checksums.yaml +4 -4
- data/lib/pampa-local.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: cd2b556393791e29081ae163f85537c275acc466
|
|
4
|
+
data.tar.gz: 06183e74108d338bdd294a7d608ea4c2dff3bd26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02a3d2c706b196ce595a2c70c3e35f68080f1c3e81925e51d8150e236decfa24ff07f201cc9055260415dbe8250d8cdd9e6fa15ef71ff8b66fa024d94ab60003
|
|
7
|
+
data.tar.gz: a9a546beccf89d6106dd2ac1697413429ee42f030e9be86bf9ca5b691bd162b21ca0769af859ed8c231eec9c60a4dd5350005589914d41d562e4ec202b43090c
|
data/lib/pampa-local.rb
CHANGED
|
@@ -18,7 +18,7 @@ def now()
|
|
|
18
18
|
# La llamada a GETDATE() desde ODBC no retorna precision de milisegundos, que es necesaria para los registros de log.
|
|
19
19
|
# La llamada a SYSDATETIME() retorna un valor de alta precision que no es compatible para pegar en los campos del tipo DATATIME.
|
|
20
20
|
# La linea de abajo obtiene la hora en formato de SYSDATE y le trunca los ultimos digitos para hacer que el valor sea compatible con los campos DATETIME.
|
|
21
|
-
(DB['SELECT SYSDATETIME() AS [now]'].map(:now)[0]).to_s[0..
|
|
21
|
+
(DB['SELECT SYSDATETIME() AS [now]'].map(:now)[0]).to_s[0..18]
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def diff(unit, t0, t1)
|