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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
de1ff069
Commit
de1ff069
authored
Jan 15, 2005
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/mysql_src/mysql-5.0-clean
parents
2c6738cd
b6d46b3c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+6
-1
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+2
-2
sql/field.h
sql/field.h
+2
-0
sql/ha_myisam.cc
sql/ha_myisam.cc
+1
-1
No files found.
mysql-test/mysql-test-run.sh
View file @
de1ff069
...
@@ -538,7 +538,12 @@ else
...
@@ -538,7 +538,12 @@ else
MYSQLD
=
"
$VALGRIND
$BASEDIR
/bin/mysqld"
MYSQLD
=
"
$VALGRIND
$BASEDIR
/bin/mysqld"
fi
fi
CLIENT_BINDIR
=
"
$BASEDIR
/bin"
CLIENT_BINDIR
=
"
$BASEDIR
/bin"
TESTS_BINDIR
=
"
$BASEDIR
/bin"
if
test
-d
"
$BASEDIR
/tests"
then
TESTS_BINDIR
=
"
$BASEDIR
/tests"
else
TESTS_BINDIR
=
"
$BASEDIR
/bin"
fi
MYSQL_TEST
=
"
$CLIENT_BINDIR
/mysqltest"
MYSQL_TEST
=
"
$CLIENT_BINDIR
/mysqltest"
MYSQL_DUMP
=
"
$CLIENT_BINDIR
/mysqldump"
MYSQL_DUMP
=
"
$CLIENT_BINDIR
/mysqldump"
MYSQL_BINLOG
=
"
$CLIENT_BINDIR
/mysqlbinlog"
MYSQL_BINLOG
=
"
$CLIENT_BINDIR
/mysqlbinlog"
...
...
scripts/mysql_install_db.sh
View file @
de1ff069
...
@@ -98,9 +98,9 @@ else
...
@@ -98,9 +98,9 @@ else
if
test
-x
"
$basedir
/libexec/mysqld"
if
test
-x
"
$basedir
/libexec/mysqld"
then
then
execdir
=
"
$basedir
/libexec"
execdir
=
"
$basedir
/libexec"
elif
test
-x
"
@libexecdir@
/mysqld"
elif
test
-x
"
$basedir
/sbin
/mysqld"
then
then
execdir
=
"
@libexecdir@
"
execdir
=
"
$basedir
/sbin
"
else
else
execdir
=
"
$basedir
/bin"
execdir
=
"
$basedir
/bin"
fi
fi
...
...
sql/field.h
View file @
de1ff069
...
@@ -123,6 +123,7 @@ class Field
...
@@ -123,6 +123,7 @@ class Field
}
}
virtual
bool
eq_def
(
Field
*
field
);
virtual
bool
eq_def
(
Field
*
field
);
virtual
uint32
pack_length
()
const
{
return
(
uint32
)
field_length
;
}
virtual
uint32
pack_length
()
const
{
return
(
uint32
)
field_length
;
}
virtual
uint32
pack_length_in_rec
()
const
{
return
pack_length
();
}
virtual
void
reset
(
void
)
{
bzero
(
ptr
,
pack_length
());
}
virtual
void
reset
(
void
)
{
bzero
(
ptr
,
pack_length
());
}
virtual
void
reset_fields
()
{}
virtual
void
reset_fields
()
{}
virtual
void
set_default
()
virtual
void
set_default
()
...
@@ -1237,6 +1238,7 @@ class Field_bit :public Field {
...
@@ -1237,6 +1238,7 @@ class Field_bit :public Field {
{
get_key_image
(
buff
,
length
,
itRAW
);
}
{
get_key_image
(
buff
,
length
,
itRAW
);
}
uint32
pack_length
()
const
uint32
pack_length
()
const
{
return
(
uint32
)
field_length
+
(
bit_len
>
0
);
}
{
return
(
uint32
)
field_length
+
(
bit_len
>
0
);
}
uint32
pack_length_in_rec
()
const
{
return
field_length
;
}
void
sql_type
(
String
&
str
)
const
;
void
sql_type
(
String
&
str
)
const
;
field_cast_enum
field_cast_type
()
{
return
FIELD_CAST_BIT
;
}
field_cast_enum
field_cast_type
()
{
return
FIELD_CAST_BIT
;
}
char
*
pack
(
char
*
to
,
const
char
*
from
,
uint
max_length
=~
(
uint
)
0
);
char
*
pack
(
char
*
to
,
const
char
*
from
,
uint
max_length
=~
(
uint
)
0
);
...
...
sql/ha_myisam.cc
View file @
de1ff069
...
@@ -1467,7 +1467,7 @@ int ha_myisam::create(const char *name, register TABLE *table_arg,
...
@@ -1467,7 +1467,7 @@ int ha_myisam::create(const char *name, register TABLE *table_arg,
fieldpos
<=
minpos
)
fieldpos
<=
minpos
)
{
{
/* skip null fields */
/* skip null fields */
if
(
!
(
temp_length
=
(
*
field
)
->
pack_length
()))
if
(
!
(
temp_length
=
(
*
field
)
->
pack_length
_in_rec
()))
continue
;
/* Skip null-fields */
continue
;
/* Skip null-fields */
if
(
!
found
||
fieldpos
<
minpos
||
if
(
!
found
||
fieldpos
<
minpos
||
(
fieldpos
==
minpos
&&
temp_length
<
length
))
(
fieldpos
==
minpos
&&
temp_length
<
length
))
...
...
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