1
0
forked from MTSR/mapserver

use float64 for psql timestamp

This commit is contained in:
NatureFreshMilk 2019-04-04 08:12:06 +02:00
parent 5367d977f7
commit c2d3f35962

View File

@ -100,14 +100,14 @@ func (db *PostgresAccessor) GetTimestamp() (int64, error) {
defer rows.Close() defer rows.Close()
if rows.Next() { if rows.Next() {
var ts int64 var ts float64
err = rows.Scan(&ts) err = rows.Scan(&ts)
if err != nil { if err != nil {
return 0, err return 0, err
} }
return ts, nil return int64(ts), nil
} }
return 0, nil return 0, nil