PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Queue » Bug #4748

MySQL Only db function

Details

Submitted2005-07-05 12:34 UTC
Fromjruiz at tecsisa dot com
Assignedquipo
StatusClosed
PackageMail_Queue
PHP Version4.3.7
OSSQL Server
Roadmaps(Not assigned)

Comments

[2005-07-05 12:34 UTC] jruiz at tecsisa dot com

Description:
------------
* Mail_Queue_Container::put() in PEAR :: Mail :: Queue :: DB Container uses the mySQL function "now()" in two SQL Queries.

Should use database independant code.

Reproduce code:
---------------
sprintf("INSERT INTO %s (id, create_time, time_to_send, id_user, ip, sender, recipient, headers, body, delete_after_send)
VALUES(%d, now(), '%s', %d, '%s', '%s', '%s', '%s', '%s', %d)",

Expected result:
----------------
An insert in the MS SQL Data Base

Actual result:
--------------
An error, now() is not a MS DB SQL function