bk commit - MyODBC 3.51 (1.478)

bk commit - MyODBC 3.51 (1.478)

am 21.07.2005 16:12:07 von bdegtyariov

Below is the list of changes that have just been commited into a local
MyODBC 3.51 repository of 'bdegtyariov'. When 'bdegtyariov' does a push, they will
be propogaged to the main repository and within 2 hours after the push
into the public repository.

For more information on how to access the public repository see:
http://www.mysql.com/products/myodbc/faq_2.html#Development_ source

You can also browse the changes from public repository:
Complete repository: http://mysql.bkbits.net:8080/myodbc3/
This changeset : http://mysql.bkbits.net:8080/myodbc3/cset@1.478

ChangeSet
1.478 05/07/21 17:12:05 bdegtyariov@suse3000. +5 -0
logging_ok:
Logging to logging@openlogging.org accepted
connect.c:
Fixed compiler error with DBUG_ENTER/DBUG_RETURN_STATUS
utility.c:
Added SQL_C_BIT
results.c:
Fixed wrong results with SQL_C_BIT
myodbc3.h:
New field type definition FIELD_TYPE_BIT.

BitKeeper/etc/logging_ok
1.46 05/07/20 17:26:56 bdegtyariov@suse3000. +1 -0
Logging to logging@openlogging.org accepted

driver/connect.c
1.73 05/07/20 17:25:41 bdegtyariov@suse3000. +1 -1
Fixed compiler error with DBUG_ENTER/DBUG_RETURN_STATUS

driver/utility.c
1.51 05/07/20 17:22:43 bdegtyariov@suse3000. +9 -0
Added SQL_C_BIT

driver/results.c
1.58 05/07/20 17:22:02 bdegtyariov@suse3000. +1 -1
Fixed wrong results with SQL_C_BIT

driver/myodbc3.h
1.46 05/07/20 17:18:13 bdegtyariov@suse3000. +4 -0
New field type definition FIELD_TYPE_BIT.

# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: bdegtyariov
# Host: suse3000.
# Root: /home/bdegtyariov/Repository5/myodbc-3.51

--- 1.45/BitKeeper/etc/logging_ok 2005-06-02 22:29:25 +03:00
+++ 1.46/BitKeeper/etc/logging_ok 2005-07-20 17:26:56 +03:00
@@ -1,6 +1,7 @@
Administrator@venu.
arjen@co3064164-a.bitbike.com
bdegtyariov@mail.mysql.com
+bdegtyariov@suse3000.
dean@mysql.com
dellis@niflheim.lan
eren@side.

--- 1.72/driver/connect.c 2005-06-14 12:59:56 +03:00
+++ 1.73/driver/connect.c 2005-07-20 17:25:41 +03:00
@@ -383,6 +383,7 @@
void * hModule = NULL;
#endif

+ DBUG_ENTER("SQLDriverConnect");
/* parse incoming string */
if ( !MYODBCUtilReadConnectStr( pDataSource, (LPCSTR)szConnStrIn ) )
{
@@ -692,7 +693,6 @@
port[10],socket[256],init_stmt[256],option[64], desc[256];
my_bool fPrompt= FALSE, fDriver= FALSE, fOption= FALSE;
DBC FAR *dbc= (DBC FAR*) hdbc;
- DBUG_ENTER("SQLDriverConnect");

if ((szConnStrIn == NULL) || (!cbConnStrIn) ||
((cbConnStrIn == SQL_NTS) && (!szConnStrIn[0])))

--- 1.57/driver/results.c 2005-04-29 07:03:52 +03:00
+++ 1.58/driver/results.c 2005-07-20 17:22:02 +03:00
@@ -862,7 +862,7 @@
}
case SQL_C_BIT:
if (rgbValue)
- *((char*) rgbValue)= (atoi(value) == 0 ? 0 : 1);
+ *((char*) rgbValue)= (value[0] == 1 ? 1 : (atoi(value) == 0) ? 0 : 1);
*pcbValue= 1;
break;
case SQL_C_TINYINT:

--- 1.50/driver/utility.c 2005-06-02 22:23:56 +03:00
+++ 1.51/driver/utility.c 2005-07-20 17:22:43 +03:00
@@ -373,6 +373,13 @@
*transfer_length= *precision= *display_size= field->max_length;

switch(field->type) {
+ case FIELD_TYPE_BIT:
+ if (buff)
+ {
+ pos= strmov(buff,"bit");
+ }
+ *transfer_length= 1;
+ return SQL_BIT;

case FIELD_TYPE_DECIMAL:
case FIELD_TYPE_NEWDECIMAL:
@@ -595,6 +602,8 @@
case FIELD_TYPE_LONGLONG: /* Must be returned as char */
default:
return SQL_C_CHAR;
+ case FIELD_TYPE_BIT:
+ return SQL_C_BIT;
case FIELD_TYPE_CHAR:
return SQL_C_TINYINT;
case FIELD_TYPE_YEAR:

--- 1.45/driver/myodbc3.h 2005-06-02 22:10:26 +03:00
+++ 1.46/driver/myodbc3.h 2005-07-20 17:18:13 +03:00
@@ -430,6 +430,10 @@
#define FIELD_TYPE_NEWDECIMAL 246
#endif

+#ifndef FIELD_TYPE_BIT
+#define FIELD_TYPE_BIT 16
+#endif
+
#include "myutil.h"

#endif /* __MYODBC3_H__ */

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org