I had the following code in my MSSQL Stored Procedure:

        --Adding 23Hrs 59Mins 59Secs to the ToDate(@ld_ToDate is
DateTime datatype)
        SET @ld_ToDate = DATEADD(ss, 86399, @ld_ToDate);

I have changed it to the following for Postgres Function:

        --Adding 23Hrs 59Mins 59Secs to the ToDate
        --Here $2 is an input variable(timestamp datatype)      
        lv_ToDate := $2 + interval ''86399 seconds'';


Does this make sense?

Any pointers appreciated.

Thanks,
Sumita


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
            • ... V i s h a l Kashyap @ [Sai Hertz And Control Systems]
          • Re:... Sumita Biswas
            • ... V i s h a l Kashyap @ [Sai Hertz And Control Systems]
            • ... Tom Lane
              • ... Sumita Biswas
              • ... Tom Lane
              • ... Sumita Biswas
              • ... Sumita Biswas
              • ... Sumita Biswas
              • ... Michael Chaney
              • ... Sumita Biswas
              • ... Sumita Biswas (sbiswas)
              • ... Sumita Biswas (sbiswas)
              • ... Sumita Biswas (sbiswas)
              • ... Sumita Biswas
              • ... Sumita Biswas
  • FW: [SQL] Function Sumita Biswas (sbiswas)

Reply via email to