Changeset 4e9b5ad in tol
- Timestamp:
- Dec 3, 2010, 11:07:28 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 76a56bf
- Parents:
- 1121f7d
- File:
-
- 1 edited
-
tol/dbdrivers/libtolodbc.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/dbdrivers/libtolodbc.c
r1121f7d r4e9b5ad 362 362 363 363 dbd->typeList[nfield] = pfSqlType; 364 //printf( "pfSqlType=%d\n", pfSqlType ); 364 365 switch (pfSqlType) 365 366 { … … 377 378 } 378 379 case SQL_DATE: case SQL_TIME: case SQL_TIMESTAMP: 380 #if (ODBCVER >= 0x0300) 381 case SQL_TYPE_DATE: case SQL_TYPE_TIME: case SQL_TYPE_TIMESTAMP: 382 #endif 379 383 { 380 384 ret = TypeDBDate; … … 618 622 { 619 623 case SQL_DATE: 624 #if (ODBCVER >= 0x0300) 625 case SQL_TYPE_DATE: 626 #endif 620 627 size = sizeof(struct tagDATE_STRUCT); 621 628 x_date = (struct tagDATE_STRUCT *)malloc(size); … … 624 631 break; 625 632 case SQL_TIME: 633 #if (ODBCVER >= 0x0300) 634 case SQL_TYPE_TIME: 635 #endif 626 636 size = sizeof(struct tagTIME_STRUCT); 627 637 x_time = (struct tagTIME_STRUCT *)malloc(size); … … 630 640 break; 631 641 case SQL_TIMESTAMP: 642 #if (ODBCVER >= 0x0300) 643 case SQL_TYPE_TIMESTAMP: 644 #endif 632 645 size = sizeof(struct tagTIMESTAMP_STRUCT); 633 646 x_timestamp = (struct tagTIMESTAMP_STRUCT *)malloc(size); … … 665 678 { 666 679 case SQL_DATE: 680 #if (ODBCVER >= 0x0300) 681 case SQL_TYPE_DATE: 682 #endif 667 683 (*dateval)->year = (unsigned short)(x_date->year); 668 684 (*dateval)->month = (unsigned short)(x_date->month); … … 670 686 break; 671 687 case SQL_TIME: 688 #if (ODBCVER >= 0x0300) 689 case SQL_TYPE_TIME: 690 #endif 672 691 (*dateval)->hour = (unsigned short)(x_time->hour); 673 692 (*dateval)->minute = (unsigned short)(x_time->minute); … … 675 694 break; 676 695 case SQL_TIMESTAMP: 696 #if (ODBCVER >= 0x0300) 697 case SQL_TYPE_TIMESTAMP: 698 #endif 677 699 (*dateval)->year = (unsigned short)(x_timestamp->year); 678 700 (*dateval)->month = (unsigned short)(x_timestamp->month);
Note: See TracChangeset
for help on using the changeset viewer.
