type mismatch error
Reportula is a php based web program that provides you a summarized ou
Status: Beta
Brought to you by:
oliveiraped
Originally created by: jacekjaros
php artisan BaculaStats:collect
[Illuminate\Database\QueryException]
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "0.0833333333333333" (SQL: select * from "hoursstats" where "data" = 2014-04-08 and "server" = angel and "bytes" = 6884397 and "starttime" = 20
14-04-07 23:05:01 and "endtime" = 2014-04-07 23:10:06 and "timediff" = 00:05:04 and "hoursdiff" = 0.0833333333333333 and "hourbytes" = 82612764 limit 1)
View and moderate all "issues Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: oliveiraped
Jacek it's on Mysql or Postgres ?
View and moderate all "issues Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: jacekjaros
I use postgres
View and moderate all "issues Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: jacekjaros
i believe the error is caused by escaping 'hoursdiff' variable:
query with escaping:
bacula=# select * from "hoursstats" where "data" = '2014-04-08' and "server" = 'angel' and "bytes" = 6884397 and "starttime" = '14-04-07 23:05:01' and "endtime" = '2014-04-07 23:10:06' and "timediff" = '00:05:04' and "hoursdiff" = '0.0833333333333333' and "hourbytes" = 82612764 limit 1;
ERROR: invalid input syntax for integer: "0.0833333333333333"
LINE 1: ...06' and "timediff" = '00:05:04' and "hoursdiff" = '0.0833333...
query without escaping: ^
bacula=# select * from "hoursstats" where "data" = '2014-04-08' and "server" = 'angel' and "bytes" = 6884397 and "starttime" = '14-04-07 23:05:01' and "endtime" = '2014-04-07 23:10:06' and "timediff" = '00:05:04' and "hoursdiff" = 0.0833333333333333 and "hourbytes" = 82612764 limit 1;
id | data | server | starttime | endtime | bytes | hoursdiff | hourbytes | timediff
----+------+--------+-----------+---------+-------+-----------+-----------+----------
(0 rows)
View and moderate all "issues Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: jayme-github
Facing the same error with PostgreSQL 8.3
As I'm not familiar with the frameworks used here: Is there a quick workaround?