diff --git a/livesupport/products/scheduler/src/PostgresqlSchedule.cxx b/livesupport/products/scheduler/src/PostgresqlSchedule.cxx index 79ef6d4ca..a7acb3fd3 100644 --- a/livesupport/products/scheduler/src/PostgresqlSchedule.cxx +++ b/livesupport/products/scheduler/src/PostgresqlSchedule.cxx @@ -22,7 +22,7 @@ Author : $Author: maroy $ - Version : $Revision: 1.7 $ + Version : $Revision: 1.8 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/src/PostgresqlSchedule.cxx,v $ ------------------------------------------------------------------------------*/ @@ -331,7 +331,7 @@ PostgresqlSchedule :: getScheduleEntries( Ptr::Ref rs(pstmt->executeQuery()); while (rs->next()) { - Ptr::Ref id = UniqueId::fromDecimalString( + Ptr::Ref id = UniqueId::fromDecimalString( rs->getString(1)); Ptr::Ref playlistId = UniqueId::fromDecimalString( rs->getString(2)); @@ -382,8 +382,10 @@ PostgresqlSchedule :: getNextEntry(Ptr::Ref fromTime) Ptr::Ref rs(pstmt->executeQuery()); if (rs->next()) { - Ptr::Ref id(new UniqueId(rs->getLong(1))); - Ptr::Ref playlistId(new UniqueId(rs->getLong(2))); + Ptr::Ref id = UniqueId::fromDecimalString( + rs->getString(1)); + Ptr::Ref playlistId = UniqueId::fromDecimalString( + rs->getString(2)); *timestamp = rs->getTimestamp(3); Ptr::Ref startTime = Conversion::timestampToPtime(timestamp); @@ -492,8 +494,10 @@ PostgresqlSchedule :: getScheduleEntry(Ptr::Ref entryId) if (rs->next()) { Ptr::Ref timestamp(new Timestamp()); - Ptr::Ref id(new UniqueId(rs->getLong(1))); - Ptr::Ref playlistId(new UniqueId(rs->getLong(2))); + Ptr::Ref id = UniqueId::fromDecimalString( + rs->getString(1)); + Ptr::Ref playlistId = UniqueId::fromDecimalString( + rs->getString(2)); *timestamp = rs->getTimestamp(3); Ptr::Ref startTime = Conversion::timestampToPtime(timestamp);