Timestamp instead of date
This commit is contained in:
parent
78423c971a
commit
24f4cae8d4
1 changed files with 2 additions and 2 deletions
|
|
@ -140,7 +140,7 @@ abstract class Noalyss_SQL
|
|||
case "date":
|
||||
if ($this->date_format=="")
|
||||
throw new Exception('Format Date invalide');
|
||||
$par .=$sep.'to_date($'.$idx.",'".$this->date_format."')";
|
||||
$par .=$sep.'to_timestamp($'.$idx.",'".$this->date_format."')";
|
||||
break;
|
||||
default:
|
||||
$par .= $sep."$".$idx;
|
||||
|
|
@ -177,7 +177,7 @@ abstract class Noalyss_SQL
|
|||
switch ($this->type[$value])
|
||||
{
|
||||
case "date":
|
||||
$par=$value.'=to_date($'.$idx.",'".$this->date_format."')";
|
||||
$par=$value.'=to_timestamp($'.$idx.",'".$this->date_format."')";
|
||||
break;
|
||||
default:
|
||||
$par=$value."= $".$idx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue