Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
1f8e38d0
Commit
1f8e38d0
authored
Oct 07, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 4.0 to get fix for mysqlbinlog
parents
6056cfad
1b06af3a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
10 deletions
+21
-10
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+9
-1
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+8
-7
mysql-test/r/create.result
mysql-test/r/create.result
+1
-1
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
client/mysqlbinlog.cc
View file @
1f8e38d0
...
@@ -40,6 +40,7 @@ static FILE *result_file;
...
@@ -40,6 +40,7 @@ static FILE *result_file;
#ifndef DBUG_OFF
#ifndef DBUG_OFF
static
const
char
*
default_dbug_option
=
"d:t:o,/tmp/mysqlbinlog.trace"
;
static
const
char
*
default_dbug_option
=
"d:t:o,/tmp/mysqlbinlog.trace"
;
#endif
#endif
static
const
char
*
load_default_groups
[]
=
{
"mysqlbinlog"
,
"client"
,
0
};
void
sql_print_error
(
const
char
*
format
,
...);
void
sql_print_error
(
const
char
*
format
,
...);
...
@@ -277,7 +278,7 @@ static void die(const char* fmt, ...)
...
@@ -277,7 +278,7 @@ static void die(const char* fmt, ...)
static
void
print_version
()
static
void
print_version
()
{
{
printf
(
"%s Ver 2.
3
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
printf
(
"%s Ver 2.
4
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
}
}
...
@@ -373,6 +374,7 @@ static int parse_args(int *argc, char*** argv)
...
@@ -373,6 +374,7 @@ static int parse_args(int *argc, char*** argv)
int
ho_error
;
int
ho_error
;
result_file
=
stdout
;
result_file
=
stdout
;
load_defaults
(
"my"
,
load_default_groups
,
argc
,
argv
);
if
((
ho_error
=
handle_options
(
argc
,
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
argc
,
argv
,
my_long_options
,
get_one_option
)))
exit
(
ho_error
);
exit
(
ho_error
);
...
@@ -673,12 +675,16 @@ Create_file event for file_id: %u\n",exv->file_id);
...
@@ -673,12 +675,16 @@ Create_file event for file_id: %u\n",exv->file_id);
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
static
char
**
defaults_argv
;
MY_INIT
(
argv
[
0
]);
MY_INIT
(
argv
[
0
]);
parse_args
(
&
argc
,
(
char
***
)
&
argv
);
parse_args
(
&
argc
,
(
char
***
)
&
argv
);
defaults_argv
=
argv
;
if
(
!
argc
)
if
(
!
argc
)
{
{
usage
();
usage
();
free_defaults
(
defaults_argv
);
return
-
1
;
return
-
1
;
}
}
...
@@ -707,6 +713,8 @@ int main(int argc, char** argv)
...
@@ -707,6 +713,8 @@ int main(int argc, char** argv)
my_fclose
(
result_file
,
MYF
(
0
));
my_fclose
(
result_file
,
MYF
(
0
));
if
(
use_remote
)
if
(
use_remote
)
mysql_close
(
mysql
);
mysql_close
(
mysql
);
free_defaults
(
defaults_argv
);
my_end
(
0
);
return
0
;
return
0
;
}
}
...
...
mysql-test/mysql-test-run.sh
View file @
1f8e38d0
...
@@ -429,15 +429,14 @@ if [ x$SOURCE_DIST = x1 ] ; then
...
@@ -429,15 +429,14 @@ if [ x$SOURCE_DIST = x1 ] ; then
MYSQL_TEST
=
"
$BASEDIR
/client/mysqltest"
MYSQL_TEST
=
"
$BASEDIR
/client/mysqltest"
fi
fi
if
[
-f
"
$BASEDIR
/client/.libs/mysqldump"
]
;
then
if
[
-f
"
$BASEDIR
/client/.libs/mysqldump"
]
;
then
MYSQL_DUMP
=
"
$BASEDIR
/client/.libs/mysqldump
--no-defaults -uroot --socket=
$MASTER_MYSOCK
"
MYSQL_DUMP
=
"
$BASEDIR
/client/.libs/mysqldump"
else
else
MYSQL_DUMP
=
"
$BASEDIR
/client/mysqldump
--no-defaults -uroot --socket=
$MASTER_MYSOCK
"
MYSQL_DUMP
=
"
$BASEDIR
/client/mysqldump"
fi
fi
if
[
-f
"
$BASEDIR
/client/.libs/mysqlbinlog"
]
;
then
if
[
-f
"
$BASEDIR
/client/.libs/mysqlbinlog"
]
;
then
MYSQL_BINLOG
=
"
$BASEDIR
/client/.libs/mysqlbinlog
--no-defaults --local-load=
$MYSQL_TMP_DIR
"
MYSQL_BINLOG
=
"
$BASEDIR
/client/.libs/mysqlbinlog"
else
else
MYSQL_BINLOG
=
"
$BASEDIR
/client/mysqlbinlog --no-defaults --local-load=
$MYSQL_TMP_DIR
"
MYSQL_BINLOG
=
"
$BASEDIR
/client/mysqlbinlog"
fi
if
[
-n
"
$STRACE_CLIENT
"
]
;
then
if
[
-n
"
$STRACE_CLIENT
"
]
;
then
MYSQL_TEST
=
"strace -o
$MYSQL_TEST_DIR
/var/log/mysqltest.strace
$MYSQL_TEST
"
MYSQL_TEST
=
"strace -o
$MYSQL_TEST_DIR
/var/log/mysqltest.strace
$MYSQL_TEST
"
fi
fi
...
@@ -459,8 +458,8 @@ else
...
@@ -459,8 +458,8 @@ else
MYSQLD
=
"
$VALGRIND
$BASEDIR
/bin/mysqld"
MYSQLD
=
"
$VALGRIND
$BASEDIR
/bin/mysqld"
fi
fi
MYSQL_TEST
=
"
$BASEDIR
/bin/mysqltest"
MYSQL_TEST
=
"
$BASEDIR
/bin/mysqltest"
MYSQL_DUMP
=
"
$BASEDIR
/bin/mysqldump
--no-defaults -uroot --socket=
$MASTER_MYSOCK
"
MYSQL_DUMP
=
"
$BASEDIR
/bin/mysqldump"
MYSQL_BINLOG
=
"
$BASEDIR
/bin/mysqlbinlog
--no-defaults --local-load=
$MYSQL_TMP_DIR
"
MYSQL_BINLOG
=
"
$BASEDIR
/bin/mysqlbinlog"
MYSQLADMIN
=
"
$BASEDIR
/bin/mysqladmin"
MYSQLADMIN
=
"
$BASEDIR
/bin/mysqladmin"
WAIT_PID
=
"
$BASEDIR
/bin/mysql_waitpid"
WAIT_PID
=
"
$BASEDIR
/bin/mysql_waitpid"
MYSQL_MANAGER
=
"
$BASEDIR
/bin/mysqlmanager"
MYSQL_MANAGER
=
"
$BASEDIR
/bin/mysqlmanager"
...
@@ -478,6 +477,8 @@ else
...
@@ -478,6 +477,8 @@ else
fi
fi
fi
fi
MYSQL_DUMP
=
"
$MYSQL_DUMP
--no-defaults -uroot --socket=
$MASTER_MYSOCK
"
MYSQL_BINLOG
=
"
$MYSQL_BINLOG
--no-defaults --local-load=
$MYSQL_TMP_DIR
"
export
MYSQL_DUMP
export
MYSQL_DUMP
export
MYSQL_BINLOG
export
MYSQL_BINLOG
...
...
mysql-test/r/create.result
View file @
1f8e38d0
...
@@ -86,7 +86,7 @@ Field Type Null Key Default Extra
...
@@ -86,7 +86,7 @@ Field Type Null Key Default Extra
x varchar(50) YES NULL
x varchar(50) YES NULL
describe t2;
describe t2;
Field Type Null Key Default Extra
Field Type Null Key Default Extra
x char(50) YES NULL
x
var
char(50) YES NULL
drop table t2;
drop table t2;
create table t2 select now() as a , curtime() as b, curdate() as c , 1+1 as d , 1.0 + 1 as e , 33333333333333333 + 3 as f;
create table t2 select now() as a , curtime() as b, curdate() as c , 1+1 as d , 1.0 + 1 as e , 33333333333333333 + 3 as f;
describe t2;
describe t2;
...
...
scripts/mysql_install_db.sh
View file @
1f8e38d0
...
@@ -167,7 +167,7 @@ then
...
@@ -167,7 +167,7 @@ then
fi
fi
fi
fi
if
test
"
$ip_only
"
=
1
if
test
"
$ip_only
"
=
"1"
then
then
ip
=
`
echo
"
$resolved
"
|
awk
'/ /{print $6}'
`
ip
=
`
echo
"
$resolved
"
|
awk
'/ /{print $6}'
`
hostname
=
$ip
hostname
=
$ip
...
...
sql/sql_select.cc
View file @
1f8e38d0
...
@@ -4474,6 +4474,8 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
...
@@ -4474,6 +4474,8 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
new_field
->
field_name
=
item
->
name
;
new_field
->
field_name
=
item
->
name
;
if
(
org_field
->
maybe_null
())
if
(
org_field
->
maybe_null
())
new_field
->
flags
&=
~
NOT_NULL_FLAG
;
// Because of outer join
new_field
->
flags
&=
~
NOT_NULL_FLAG
;
// Because of outer join
if
(
org_field
->
type
()
==
FIELD_TYPE_VAR_STRING
)
table
->
db_create_options
|=
HA_OPTION_PACK_RECORD
;
}
}
return
new_field
;
return
new_field
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment