[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-odbc
Subject:    bk commit - MyODBC 3.51 (1.490)
From:       Bogdan Degtyariov <bogdan () mysql ! com>
Date:       2005-08-11 17:34:48
Message-ID: 20050811173448.C58DB321E2 () linux ! site
[Download RAW message or body]

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.490

ChangeSet
  1.490 05/08/11 20:34:47 bdegtyariov@suse3000. +1 -0
  catalog.c:
    fixed SQLForeignKeys function which returned bad results with just one quoting symbol `tab or key`

  driver/catalog.c
    1.48 05/08/11 20:33:52 bdegtyariov@suse3000. +4 -1
    fixed SQLForeignKeys function which returned bad results with just one quoting symbol `tab or key`

# 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/myodbc-3.51

--- 1.47/driver/catalog.c	2005-08-10 20:45:46 +03:00
+++ 1.48/driver/catalog.c	2005-08-11 20:33:52 +03:00
@@ -1907,7 +1907,7 @@
             if ( (row[1] && strcmp(row[1],"InnoDB")==0) )
             {
                 const char *token,*pktoken,*fk_cols_start,*pk_cols_start;
-                char       *comment_token, ref_token[NAME_LEN+1];
+                char       *comment_token, ref_token[NAME_LEN+1], tmpbuff[NAME_LEN+1];
                 char       *pkcomment,*fkcomment;
                 uint       key_seq,pk_length,fk_length;
 
@@ -1932,12 +1932,15 @@
 
                     if ( !(token= my_next_token(token+7,&comment_token,ref_token,'/')) )
                         continue;
+                    strcpy(ref_token, 
+			 strcpy(tmpbuff, ref_token+1));    /* Remove first quot character */
                     data[0]= strdup_root(alloc,ref_token); /* PKTABLE_CAT */
 
                     if ( !(token= my_next_token(token,&comment_token,ref_token,'(')) ||
                          myodbc_casecmp(PkTableName,ref_token,strlen(PkTableName)) )
                         continue;
 
+                    ref_token[strlen(ref_token)- 1] = 0;   /* Remove last quot character */
                     data[2]= strdup_root(alloc,ref_token); /* PKTABLE_TABLE */        
                     pk_cols_start = token;
 

-- 
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe:    http://lists.mysql.com/myodbc?unsub=mysql-odbc@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic