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
f803908e
Commit
f803908e
authored
Mar 15, 2006
by
jani@ibmlab.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into ibmlab.site:/home/my/bk/mysql-5.1-new
parents
aa83fb4f
fbe3db30
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
92 additions
and
2 deletions
+92
-2
mysql-test/r/xml.result
mysql-test/r/xml.result
+4
-0
mysql-test/t/xml.test
mysql-test/t/xml.test
+9
-0
sql/item_xmlfunc.cc
sql/item_xmlfunc.cc
+4
-2
win/README
win/README
+75
-0
No files found.
mysql-test/r/xml.result
View file @
f803908e
...
@@ -609,3 +609,7 @@ extractvalue('<a>Jack</a>','/a[contains(../a,"j")]' collate latin1_bin)
...
@@ -609,3 +609,7 @@ extractvalue('<a>Jack</a>','/a[contains(../a,"j")]' collate latin1_bin)
select extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]');
select extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]');
extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]')
extractvalue('<a>Jack</a>' collate latin1_bin,'/a[contains(../a,"j")]')
select extractValue('<e>1</e>','position()');
ERROR HY000: XPATH syntax error: ''
select extractValue('<e>1</e>','last()');
ERROR HY000: XPATH syntax error: ''
mysql-test/t/xml.test
View file @
f803908e
...
@@ -277,3 +277,12 @@ select extractvalue('<a>Jack</a>','/a[contains(../a,"J")]');
...
@@ -277,3 +277,12 @@ select extractvalue('<a>Jack</a>','/a[contains(../a,"J")]');
select
extractvalue
(
'<a>Jack</a>'
,
'/a[contains(../a,"j")]'
);
select
extractvalue
(
'<a>Jack</a>'
,
'/a[contains(../a,"j")]'
);
select
extractvalue
(
'<a>Jack</a>'
,
'/a[contains(../a,"j")]'
collate
latin1_bin
);
select
extractvalue
(
'<a>Jack</a>'
,
'/a[contains(../a,"j")]'
collate
latin1_bin
);
select
extractvalue
(
'<a>Jack</a>'
collate
latin1_bin
,
'/a[contains(../a,"j")]'
);
select
extractvalue
(
'<a>Jack</a>'
collate
latin1_bin
,
'/a[contains(../a,"j")]'
);
#
# Bug #18171 XML: ExtractValue: the XPath position()
# function crashes the server!
#
--
error
1105
select
extractValue
(
'<e>1</e>'
,
'position()'
);
--
error
1105
select
extractValue
(
'<e>1</e>'
,
'last()'
);
sql/item_xmlfunc.cc
View file @
f803908e
...
@@ -1141,13 +1141,15 @@ static Item *create_func_round(MY_XPATH *xpath, Item **args, uint nargs)
...
@@ -1141,13 +1141,15 @@ static Item *create_func_round(MY_XPATH *xpath, Item **args, uint nargs)
static
Item
*
create_func_last
(
MY_XPATH
*
xpath
,
Item
**
args
,
uint
nargs
)
static
Item
*
create_func_last
(
MY_XPATH
*
xpath
,
Item
**
args
,
uint
nargs
)
{
{
return
new
Item_func_xpath_count
(
xpath
->
context
,
xpath
->
pxml
);
return
xpath
->
context
?
new
Item_func_xpath_count
(
xpath
->
context
,
xpath
->
pxml
)
:
NULL
;
}
}
static
Item
*
create_func_position
(
MY_XPATH
*
xpath
,
Item
**
args
,
uint
nargs
)
static
Item
*
create_func_position
(
MY_XPATH
*
xpath
,
Item
**
args
,
uint
nargs
)
{
{
return
new
Item_func_xpath_position
(
xpath
->
context
,
xpath
->
pxml
);
return
xpath
->
context
?
new
Item_func_xpath_position
(
xpath
->
context
,
xpath
->
pxml
)
:
NULL
;
}
}
...
...
win/README
0 → 100644
View file @
f803908e
Windows building readme
======================================
----------------IMPORTANT----------------------------
This readme outlines the instructions for building
MySQL for Windows staring from version 5.1.
This readme does not apply to MySQL versions 5.0
or ealier.
-----------------------------------------------------
The Windows build system uses a tool named CMake to generate build files for
a variety of project systems. This tool is combined with a set of jscript
files to enable building of MySQL for Windows directly out of a bk clone.
The steps required are below.
Step 1
------
Download and install CMake. It can be downloaded from http://www.cmake.org.
Once it is installed, modify your path to make sure you can execute
the cmake binary.
Step 2
------
Download and install bison for Windows. It can be downloaded from
http://gnuwin32.sourceforge.net/packages/bison.htm. Please download using
the link named "Complete package, excluding sources". This includes an
installer that will install bison. After the installer finishes, modify
your path so that you can execute bison.
Step 3
------
Clone your bk tree to any location you like.
Step 4
------
From the root of your bk clone, execute the command: win\configure <options>.
The options right now are WITH_INNODB and WITH_PARTITION. So the command line
would look like:
win\configure WITH_INNODB WITH_PARTITION
These are the only two flags supported right now. Others will come later.
Step 5
------
From the root of your bk clone, execute one of the batch files to generate the type
of project files you desire.
For Visual Studio 8, do win\build-vs8.
For Visual Studio 7.1, do win\build-vs71.
We will support building with nmake in the near future.
Step 6
------
From the root of your bk clone, start your build.
For Visual Studio, simply execute mysql.sln. This will start the IDE and you can
click the build solution menu option.
Current issues
--------------
1. Dependencies are not handled correctly with the current scripts. What
this means is that a new error file may not be generated when the errmsg.txt
file changes. In this case, simply force the GenError target to build. This
should execute comp_err to generate the required files.
2. Not all configurations are currently available. i.e. Classic, Pro, Max.
Currently, only debug and release are available. This will change in the near
future.
3. The definitions set for features (partitioning, blackhole, etc) are not
changed based on the options given with configure. This will soon be fixed
as well.
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