IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17871


Ignore:
Timestamp:
May 30, 2008, 4:16:52 PM (18 years ago)
Author:
jhoblitt
Message:

make sure TIMESTAMP fields don't get translated into UNSIGNED DATATIME

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r17869 r17871  
    2323 * 4.1.2 or newer is required.
    2424 *
    25  * $Id: psDB.c,v 1.159 2008-05-31 00:42:35 jhoblitt Exp $
     25 * $Id: psDB.c,v 1.160 2008-05-31 02:16:52 jhoblitt Exp $
    2626 */
    2727
     
    23212321    // signed or unsigned.  The result is this ugly conversion from
    23222322    // mysql -> ascii -> ptype
    2323     if (flags & UNSIGNED_FLAG) {
     2323    // XXX it appears that TIMESTAMP fields get marked as being unsigned...
     2324    if ((flags & UNSIGNED_FLAG) && strncmp(sqlType, "DATETIME", 9)) {
    23242325        psString new = NULL;
    23252326        psStringAppend(&new, "%s UNSIGNED", sqlType);
Note: See TracChangeset for help on using the changeset viewer.