mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
Merge with MariaDB 5.1
This commit is contained in:
commit
6920457142
1136 changed files with 25344 additions and 15057 deletions
|
|
@ -1,4 +1,5 @@
|
|||
/* Copyright (C) 2000-2003 MySQL AB
|
||||
/*
|
||||
Copyright (c) 2003, 2010, Oracle and/or its affiliates.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -11,7 +12,8 @@
|
|||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
This file is included by both libmysql.c (the MySQL client C API)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
/* Copyright (C) 2004-2006 MySQL AB
|
||||
/*
|
||||
Copyright (c) 2004, 2011, Oracle and/or its affiliates.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -11,7 +12,8 @@
|
|||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <my_time.h>
|
||||
#include <m_string.h>
|
||||
|
|
@ -337,7 +339,7 @@ str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time,
|
|||
{
|
||||
if (str[0] == 'p' || str[0] == 'P')
|
||||
add_hours= 12;
|
||||
else if (str[0] != 'a' || str[0] != 'A')
|
||||
else if (str[0] != 'a' && str[0] != 'A')
|
||||
continue; /* Not AM/PM */
|
||||
str+= 2; /* Skip AM/PM */
|
||||
/* Skip space after AM/PM */
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* Copyright (C) 2005 MySQL AB
|
||||
/*
|
||||
Copyright (c) 2006-2008 MySQL AB, 2009 Sun Microsystems, Inc.
|
||||
Use is subject to license terms.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -11,7 +13,8 @@
|
|||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <my_user.h>
|
||||
#include <m_string.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue