List:Commits« Previous MessageNext Message »
From:axel Date:June 6 2006 6:59pm
Subject:bk commit into 5.0 tree (schwenke:1.2174) BUG#20152
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of schwenke. When schwenke does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2174 06/06/06 18:59:17 schwenke@stripped +1 -0
  fix for bug #20152

  libmysql/libmysql.c
    1.244 06/06/06 18:58:43 schwenke@stripped +15 -3
    fix for bug #20152

# 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:	schwenke
# Host:	lmy003.xl.local
# Root:	/home/schwenke/Work/MySQL/bk-internal-tree/mysql-5.0-work

--- 1.243/libmysql/libmysql.c	2006-05-15 18:07:52 +02:00
+++ 1.244/libmysql/libmysql.c	2006-06-06 18:58:43 +02:00
@@ -2392,9 +2392,21 @@
 static void store_param_date(NET *net, MYSQL_BIND *param)
 {
   MYSQL_TIME *tm= (MYSQL_TIME *) param->buffer;
-  tm->hour= tm->minute= tm->second= 0;
-  tm->second_part= 0;
-  net_store_datetime(net, tm);
+  char buff[MAX_DATE_REP_LENGTH], *pos;
+  uint length;
+
+  pos= buff+1;
+
+  int2store(pos, tm->year);
+  pos[2]= (uchar) tm->month;
+  pos[3]= (uchar) tm->day;
+  if (tm->year || tm->month || tm->day)
+    length= 4;
+  else
+    length= 0;
+  buff[0]= (char) length++;
+  memcpy((char *)net->write_pos, buff, length);
+  net->write_pos+= length;
 }
 
 static void store_param_datetime(NET *net, MYSQL_BIND *param)
Thread
bk commit into 5.0 tree (schwenke:1.2174) BUG#20152axel6 Jun