diff --git a/livesupport/products/scheduler/src/PostgresqlSchedule.cxx b/livesupport/products/scheduler/src/PostgresqlSchedule.cxx index 7627d3977..79ef6d4ca 100644 --- a/livesupport/products/scheduler/src/PostgresqlSchedule.cxx +++ b/livesupport/products/scheduler/src/PostgresqlSchedule.cxx @@ -21,8 +21,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Author : $Author: fgerlits $ - Version : $Revision: 1.6 $ + Author : $Author: maroy $ + Version : $Revision: 1.7 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/src/PostgresqlSchedule.cxx,v $ ------------------------------------------------------------------------------*/ @@ -331,8 +331,10 @@ PostgresqlSchedule :: getScheduleEntries( Ptr::Ref rs(pstmt->executeQuery()); while (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);