w32api usr/include/sqlext.h bad macros

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Mon Dec 6 23:10:00 GMT 2004


On Mon, Dec 06, 2004 at 04:41:02PM -0500, Eric Sharkey wrote:
>The following was rejected on cygwin-patches.  I'm intentionally posting
>to the wrong list now because I shouldn't have to subscribe to a mailing
>list just to report a bug!

Since cygwin-patches isn't a "bug reporting" mailing list and since the below
isn't "a patch", I'd say that that the system was working as designed.

cgf

>------- Forwarded Message
>
>The interval code macros in sqlext.h are pretty screwed up.  It
>currently reads:
>
>#define SQL_INTERVAL_YEAR (100 + SQL_CODE_SECOND)
>#define SQL_INTERVAL_MONTH (100 + SQL_CODE_YEAR_TO_MONTH)
>#define SQL_INTERVAL_DAY (100 + SQL_CODE_DAY_TO_HOUR)
>#define SQL_INTERVAL_HOUR (100 + SQL_CODE_DAY_TO_MINUTE)
>#define SQL_INTERVAL_MINUTE (100 + SQL_CODE_DAY_TO_SECOND)
>#define SQL_INTERVAL_SECOND (100 + SQL_CODE_HOUR_TO_MINUTE)
>#define SQL_INTERVAL_YEAR_TO_MONTH (100 + SQL_CODE_HOUR_TO_SECOND)
>#define SQL_INTERVAL_DAY_TO_HOUR (100 + SQL_CODE_MINUTE_TO_SECOND)
>#define SQL_INTERVAL_DAY_TO_MINUTE (100 + SQL_CODE_DAY_TO_MINUTE)
>#define SQL_INTERVAL_DAY_TO_SECOND (100 + SQL_CODE_DAY_TO_SECOND)
>#define SQL_INTERVAL_HOUR_TO_MINUTE (100 + SQL_CODE_HOUR_TO_MINUTE)
>#define SQL_INTERVAL_HOUR_TO_SECOND (100 + SQL_CODE_HOUR_TO_SECOND)
>#define SQL_INTERVAL_MINUTE_TO_SECOND (100 + SQL_CODE_MINUTE_TO_SECOND)
>
>It should read:
>
>#define SQL_INTERVAL_YEAR (100 + SQL_CODE_YEAR)
>#define SQL_INTERVAL_MONTH (100 + SQL_CODE_MONTH)
>#define SQL_INTERVAL_DAY (100 + SQL_CODE_DAY)
>#define SQL_INTERVAL_HOUR (100 + SQL_CODE_HOUR)
>#define SQL_INTERVAL_MINUTE (100 + SQL_CODE_MINUTE)
>#define SQL_INTERVAL_SECOND (100 + SQL_CODE_SECOND)
>#define SQL_INTERVAL_YEAR_TO_MONTH (100 + SQL_CODE_YEAR_TO_MONTH)  
>#define SQL_INTERVAL_DAY_TO_HOUR (100 + SQL_CODE_DAY_TO_HOUR)
>#define SQL_INTERVAL_DAY_TO_MINUTE (100 + SQL_CODE_DAY_TO_MINUTE)
>#define SQL_INTERVAL_DAY_TO_SECOND (100 + SQL_CODE_DAY_TO_SECOND)
>#define SQL_INTERVAL_HOUR_TO_MINUTE (100 + SQL_CODE_HOUR_TO_MINUTE)
>#define SQL_INTERVAL_HOUR_TO_SECOND (100 + SQL_CODE_HOUR_TO_SECOND)
>#define SQL_INTERVAL_MINUTE_TO_SECOND (100 + SQL_CODE_MINUTE_TO_SECOND)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list