Skip to content

Commit b658662

Browse files
Update copyright
Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
1 parent b4da2fb commit b658662

518 files changed

Lines changed: 4594 additions & 4431 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client/client_priv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
2+
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
55
the Free Software Foundation; either version 2 of the License, or
66
(at your option) any later version.
7-
7+
88
This program is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
1010
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111
GNU General Public License for more details.
12-
12+
1313
You should have received a copy of the GNU General Public License
1414
along with this program; if not, write to the Free Software
1515
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

client/completion_hash.cc

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
3-
This library is free software; you can redistribute it and/or
4-
modify it under the terms of the GNU Library General Public
5-
License as published by the Free Software Foundation; either
6-
version 2 of the License, or (at your option) any later version.
7-
8-
This library is distributed in the hope that it will be useful,
1+
/* Copyright (C) 2000 MySQL AB
2+
3+
This program is free software; you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation; either version 2 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
Library General Public License for more details.
12-
13-
You should have received a copy of the GNU Library General Public
14-
License along with this library; if not, write to the Free
15-
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16-
MA 02111-1307, USA */
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program; if not, write to the Free Software
15+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1716

1817
/* Quick & light hash implementation for tab completion purposes
1918
*

client/completion_hash.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
2+
33
This library is free software; you can redistribute it and/or
44
modify it under the terms of the GNU Library General Public
55
License as published by the Free Software Foundation; either
66
version 2 of the License, or (at your option) any later version.
7-
7+
88
This library is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
1010
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111
Library General Public License for more details.
12-
12+
1313
You should have received a copy of the GNU Library General Public
1414
License along with this library; if not, write to the Free
1515
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,

client/connect_test.c

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
3-
This library is free software; you can redistribute it and/or
4-
modify it under the terms of the GNU Library General Public
5-
License as published by the Free Software Foundation; either
6-
version 2 of the License, or (at your option) any later version.
7-
8-
This library is distributed in the hope that it will be useful,
1+
/* Copyright (C) 2000 MySQL AB
2+
3+
This program is free software; you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation; either version 2 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
Library General Public License for more details.
12-
13-
You should have received a copy of the GNU Library General Public
14-
License along with this library; if not, write to the Free
15-
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16-
MA 02111-1307, USA */
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program; if not, write to the Free Software
15+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1716

1817
#include <stdio.h>
1918
#include <stdlib.h>

client/errmsg.c

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
3-
This library is free software; you can redistribute it and/or
4-
modify it under the terms of the GNU Library General Public
5-
License as published by the Free Software Foundation; either
6-
version 2 of the License, or (at your option) any later version.
7-
8-
This library is distributed in the hope that it will be useful,
1+
/* Copyright (C) 2000 MySQL AB
2+
3+
This program is free software; you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation; either version 2 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
Library General Public License for more details.
12-
13-
You should have received a copy of the GNU Library General Public
14-
License along with this library; if not, write to the Free
15-
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16-
MA 02111-1307, USA */
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program; if not, write to the Free Software
15+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1716

1817
/* Error messages for MySQL clients */
1918
/* error messages for the demon is in share/language/errmsg.sys */

client/get_password.c

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
3-
This library is free software; you can redistribute it and/or
4-
modify it under the terms of the GNU Library General Public
5-
License as published by the Free Software Foundation; either
6-
version 2 of the License, or (at your option) any later version.
7-
8-
This library is distributed in the hope that it will be useful,
1+
/* Copyright (C) 2000 MySQL AB
2+
3+
This program is free software; you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation; either version 2 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
Library General Public License for more details.
12-
13-
You should have received a copy of the GNU Library General Public
14-
License along with this library; if not, write to the Free
15-
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16-
MA 02111-1307, USA */
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program; if not, write to the Free Software
15+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1716

1817
/*
1918
** Ask for a password from tty

client/insert_test.c

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
3-
This library is free software; you can redistribute it and/or
4-
modify it under the terms of the GNU Library General Public
5-
License as published by the Free Software Foundation; either
6-
version 2 of the License, or (at your option) any later version.
7-
8-
This library is distributed in the hope that it will be useful,
1+
/* Copyright (C) 2000 MySQL AB
2+
3+
This program is free software; you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation; either version 2 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
Library General Public License for more details.
12-
13-
You should have received a copy of the GNU Library General Public
14-
License along with this library; if not, write to the Free
15-
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16-
MA 02111-1307, USA */
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program; if not, write to the Free Software
15+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1716

1817
#include <stdio.h>
1918
#include <stdlib.h>

client/list_test.c

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
1-
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
3-
This library is free software; you can redistribute it and/or
4-
modify it under the terms of the GNU Library General Public
5-
License as published by the Free Software Foundation; either
6-
version 2 of the License, or (at your option) any later version.
7-
8-
This library is distributed in the hope that it will be useful,
9-
but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
Library General Public License for more details.
12-
13-
You should have received a copy of the GNU Library General Public
14-
License along with this library; if not, write to the Free
15-
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16-
MA 02111-1307, USA */
1+
/* Copyright (C) 2000 MySQL AB
2+
3+
This program is free software; you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation; either version 2 of the License, or
6+
(at your option) any later version.
177
18-
This library is free software; you can redistribute it and/or
19-
modify it under the terms of the GNU Library General Public
20-
License as published by the Free Software Foundation; either
21-
version 2 of the License, or (at your option) any later version.
22-
23-
This library is distributed in the hope that it will be useful,
8+
This program is distributed in the hope that it will be useful,
249
but WITHOUT ANY WARRANTY; without even the implied warranty of
25-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26-
Library General Public License for more details.
27-
28-
You should have received a copy of the GNU Library General Public
29-
License along with this library; if not, write to the Free
30-
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
31-
MA 02111-1307, USA */
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program; if not, write to the Free Software
15+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
3216

3317
#ifdef __WIN__
3418
#include <windows.h>

client/my_readline.h

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
3-
This library is free software; you can redistribute it and/or
4-
modify it under the terms of the GNU Library General Public
5-
License as published by the Free Software Foundation; either
6-
version 2 of the License, or (at your option) any later version.
7-
8-
This library is distributed in the hope that it will be useful,
1+
/* Copyright (C) 2000 MySQL AB
2+
3+
This program is free software; you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation; either version 2 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
10-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11-
Library General Public License for more details.
12-
13-
You should have received a copy of the GNU Library General Public
14-
License along with this library; if not, write to the Free
15-
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16-
MA 02111-1307, USA */
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program; if not, write to the Free Software
15+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1716

1817
/* readline for batch mode */
1918

client/mysql.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
2-
1+
/* Copyright (C) 2000 MySQL AB
2+
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
55
the Free Software Foundation; either version 2 of the License, or
66
(at your option) any later version.
7-
7+
88
This program is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
1010
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111
GNU General Public License for more details.
12-
12+
1313
You should have received a copy of the GNU General Public License
1414
along with this program; if not, write to the Free Software
1515
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
@@ -1790,7 +1790,7 @@ xmlencode(char *dest, char *src)
17901790
const char *t;
17911791
char s[2] = { 0, 0 };
17921792
*dest = 0;
1793-
1793+
17941794
do
17951795
{
17961796
s[0] = *p;
@@ -1812,7 +1812,7 @@ my_chomp(char *end) {
18121812
mend--;
18131813
} while (mend && *mend);
18141814
}
1815-
1815+
18161816

18171817
static void
18181818
safe_put_field(const char *pos,ulong length)
@@ -2419,7 +2419,7 @@ static int
24192419
put_info(const char *str,INFO_TYPE info_type,uint error)
24202420
{
24212421
static int inited=0;
2422-
2422+
24232423
if (status.batch)
24242424
{
24252425
if (info_type == INFO_ERROR)

0 commit comments

Comments
 (0)