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
1789e0ff
Commit
1789e0ff
authored
Feb 06, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless debug instrumentation row_print_geometry_data
parent
5815c8ee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
114 deletions
+14
-114
mysql-test/suite/innodb_gis/r/geometry.result
mysql-test/suite/innodb_gis/r/geometry.result
+7
-28
mysql-test/suite/innodb_gis/r/types.result
mysql-test/suite/innodb_gis/r/types.result
+0
-3
mysql-test/suite/innodb_gis/t/geometry.test
mysql-test/suite/innodb_gis/t/geometry.test
+7
-30
mysql-test/suite/innodb_gis/t/types.test
mysql-test/suite/innodb_gis/t/types.test
+0
-7
storage/innobase/row/row0mysql.cc
storage/innobase/row/row0mysql.cc
+0
-46
No files found.
mysql-test/suite/innodb_gis/r/geometry.result
View file @
1789e0ff
SET default_storage_engine=InnoDB;
SET innodb_strict_mode=OFF;
SET SESSION debug="+d,row_print_geometry_data";
SHOW VARIABLES LIKE '%engine%';
Variable_name Value
default_storage_engine InnoDB
default_tmp_storage_engine InnoDB
disabled_storage_engines
internal_tmp_disk_storage_engine InnoDB
USE test;
DROP TABLE IF EXISTS t1, gis_point, gis_line, gis_polygon;
DROP TABLE IF EXISTS gis_multi_point, gis_multi_line, gis_multi_polygon;
DROP TABLE IF EXISTS gis_geometrycollection, gis_geometry;
DROP TABLE IF EXISTS tab,tab2,tab3,parent,emp2;
DROP PROCEDURE IF EXISTS geominout;
DROP PROCEDURE IF EXISTS geom_insert;
DROP TRIGGER IF EXISTS geom_trigger;
DROP PROCEDURE IF EXISTS geom_cursor;
CREATE TABLE gis_point (fid INTEGER NOT NULL PRIMARY KEY, g POINT) ENGINE=InnoDB;
CREATE TABLE gis_line (fid INTEGER NOT NULL PRIMARY KEY, g LINESTRING) ENGINE=InnoDB;
CREATE TABLE gis_polygon (fid INTEGER NOT NULL PRIMARY KEY, g POLYGON) ENGINE=InnoDB;
...
...
@@ -1136,15 +1120,10 @@ COMMIT;
SELECT COUNT(*) FROM tab3;
COUNT(*)
0
DROP TABLE IF EXISTS gis_point, gis_line, gis_polygon, gis_multi_point;
DROP TABLE IF EXISTS gis_multi_line, gis_multi_polygon;
DROP TABLE IF EXISTS gis_geometrycollection, gis_geometry;
DROP TABLE IF EXISTS tab,tab2,tab3,parent,emp2;
Warnings:
Note 1051 Unknown table 'test.emp2'
DROP PROCEDURE IF EXISTS geominout;
DROP PROCEDURE IF EXISTS geom_insert;
DROP TRIGGER IF EXISTS geom_trigger;
Warnings:
Note 1360 Trigger does not exist
DROP PROCEDURE IF EXISTS geom_cursor;
DROP TABLE gis_point, gis_line, gis_polygon, gis_multi_point;
DROP TABLE gis_multi_line, gis_multi_polygon;
DROP TABLE gis_geometrycollection, gis_geometry;
DROP TABLE tab,tab2,tab3,parent;
DROP PROCEDURE geominout;
DROP PROCEDURE geom_insert;
DROP PROCEDURE geom_cursor;
mysql-test/suite/innodb_gis/r/types.result
View file @
1789e0ff
SET SESSION debug="+d,row_print_geometry_data";
Warnings:
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
CREATE TABLE t_wl6455 ( i INT, g GEOMETRY NOT NULL) ENGINE=InnoDB;
SHOW CREATE TABLE t_wl6455;
Table Create Table
...
...
mysql-test/suite/innodb_gis/t/geometry.test
View file @
1789e0ff
...
...
@@ -9,37 +9,15 @@
# All Geometric functions.
#********************************************************
--
source
include
/
have_geometry
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_debug
.
inc
--
source
include
/
have_innodb
.
inc
SET
default_storage_engine
=
InnoDB
;
SET
innodb_strict_mode
=
OFF
;
# Turn on the geometry data print.
SET
SESSION
debug
=
"+d,row_print_geometry_data"
;
SHOW
VARIABLES
LIKE
'%engine%'
;
#
# Spatial objects
#
USE
test
;
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
,
gis_point
,
gis_line
,
gis_polygon
;
DROP
TABLE
IF
EXISTS
gis_multi_point
,
gis_multi_line
,
gis_multi_polygon
;
DROP
TABLE
IF
EXISTS
gis_geometrycollection
,
gis_geometry
;
DROP
TABLE
IF
EXISTS
tab
,
tab2
,
tab3
,
parent
,
emp2
;
DROP
PROCEDURE
IF
EXISTS
geominout
;
DROP
PROCEDURE
IF
EXISTS
geom_insert
;
DROP
TRIGGER
IF
EXISTS
geom_trigger
;
DROP
PROCEDURE
IF
EXISTS
geom_cursor
;
--
enable_warnings
CREATE
TABLE
gis_point
(
fid
INTEGER
NOT
NULL
PRIMARY
KEY
,
g
POINT
)
ENGINE
=
InnoDB
;
CREATE
TABLE
gis_line
(
fid
INTEGER
NOT
NULL
PRIMARY
KEY
,
g
LINESTRING
)
ENGINE
=
InnoDB
;
CREATE
TABLE
gis_polygon
(
fid
INTEGER
NOT
NULL
PRIMARY
KEY
,
g
POLYGON
)
ENGINE
=
InnoDB
;
...
...
@@ -694,11 +672,10 @@ COMMIT;
SELECT
COUNT
(
*
)
FROM
tab3
;
DROP
TABLE
IF
EXISTS
gis_point
,
gis_line
,
gis_polygon
,
gis_multi_point
;
DROP
TABLE
IF
EXISTS
gis_multi_line
,
gis_multi_polygon
;
DROP
TABLE
IF
EXISTS
gis_geometrycollection
,
gis_geometry
;
DROP
TABLE
IF
EXISTS
tab
,
tab2
,
tab3
,
parent
,
emp2
;
DROP
PROCEDURE
IF
EXISTS
geominout
;
DROP
PROCEDURE
IF
EXISTS
geom_insert
;
DROP
TRIGGER
IF
EXISTS
geom_trigger
;
DROP
PROCEDURE
IF
EXISTS
geom_cursor
;
DROP
TABLE
gis_point
,
gis_line
,
gis_polygon
,
gis_multi_point
;
DROP
TABLE
gis_multi_line
,
gis_multi_polygon
;
DROP
TABLE
gis_geometrycollection
,
gis_geometry
;
DROP
TABLE
tab
,
tab2
,
tab3
,
parent
,
emp2
;
DROP
PROCEDURE
geominout
;
DROP
PROCEDURE
geom_insert
;
DROP
PROCEDURE
geom_cursor
;
mysql-test/suite/innodb_gis/t/types.test
View file @
1789e0ff
...
...
@@ -6,13 +6,6 @@
# Restarting is not supported in embedded
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_debug
.
inc
# Avoid CrashReporter popup on Mac
--
source
include
/
not_crashrep
.
inc
# Turn on the geometry data print.
SET
SESSION
debug
=
"+d,row_print_geometry_data"
;
# Test GEOMETRY datatype.
CREATE
TABLE
t_wl6455
(
i
INT
,
g
GEOMETRY
NOT
NULL
)
ENGINE
=
InnoDB
;
...
...
storage/innobase/row/row0mysql.cc
View file @
1789e0ff
...
...
@@ -306,29 +306,6 @@ row_mysql_store_geometry(
mach_write_to_n_little_endian
(
dest
,
dest_len
-
8
,
src_len
);
memcpy
(
dest
+
dest_len
-
8
,
&
src
,
sizeof
src
);
DBUG_EXECUTE_IF
(
"row_print_geometry_data"
,
{
String
res
;
Geometry_buffer
buffer
;
String
wkt
;
/** Show the meaning of geometry data. */
Geometry
*
g
=
Geometry
::
construct
(
&
buffer
,
(
const
char
*
)
src
,
(
uint32
)
src_len
);
if
(
g
)
{
/*
if (g->as_wkt(&wkt) == 0)
{
ib::info() << "Write geometry data to"
" MySQL WKT format: "
<< wkt.c_ptr_safe() << ".";
}
*/
}
});
}
/*******************************************************************//**
...
...
@@ -349,29 +326,6 @@ row_mysql_read_geometry(
memcpy
(
&
data
,
ref
+
col_len
-
8
,
sizeof
data
);
DBUG_EXECUTE_IF
(
"row_print_geometry_data"
,
{
String
res
;
Geometry_buffer
buffer
;
String
wkt
;
/** Show the meaning of geometry data. */
Geometry
*
g
=
Geometry
::
construct
(
&
buffer
,
(
const
char
*
)
data
,
(
uint32
)
*
len
);
if
(
g
)
{
/*
if (g->as_wkt(&wkt) == 0)
{
ib::info() << "Read geometry data in"
" MySQL's WKT format: "
<< wkt.c_ptr_safe() << ".";
}
*/
}
});
return
(
data
);
}
...
...
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