PHP Classes

Timestamps...

Recommend this page to a friend!

      MySQL backup class  >  All threads  >  Timestamps...  >  (Un) Subscribe thread alerts  
Subject:Timestamps...
Summary:are handled incorrectly by the backup function...
Messages:1
Author:Richard Munroe
Date:2006-04-20 02:15:54
 

  1. Timestamps...   Reply   Report abuse  
Picture of Richard Munroe Richard Munroe - 2006-04-20 02:15:54
At least in MySQL 4.1, timestamps are NOT numeric. If you leave them set as numeric, you'll corrupt your timestamps. The fix is easy:

change:

case "timestamp":
$sql.="timestamp";
$is_numeric=true;
break;

To:

case "timestamp":
$sql.="timestamp";
$is_numeric=false;
break;

and all will be well.

Dick Munroe