-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[version] adding code for issue #716
- Loading branch information
Showing
11 changed files
with
364 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
SET(LOCAL_FILES | ||
pgRouting-header.sql | ||
pgrouting_version.sql | ||
_point_toId.sql | ||
_startPoint.sql | ||
_endPoint.sql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
SET(LOCAL_FILES | ||
_version.sql | ||
version.sql | ||
full_version.sql | ||
) | ||
|
||
foreach (f ${LOCAL_FILES}) | ||
configure_file(${f} ${f}) | ||
list(APPEND PACKAGE_SQL_FILES ${CMAKE_CURRENT_BINARY_DIR}/${f}) | ||
endforeach() | ||
|
||
set(PGROUTING_SQL_FILES ${PGROUTING_SQL_FILES} ${PACKAGE_SQL_FILES} PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/*PGR-GNU***************************************************************** | ||
Copyright (c) 2019 pgRouting developers | ||
Mail: project@pgrouting.org | ||
Developer: | ||
Copyright (c) 2019 Celia Virginia Vergara Castillo | ||
------ | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
********************************************************************PGR-GNU*/ | ||
|
||
CREATE OR REPLACE FUNCTION _pgr_boost_version() | ||
RETURNS TEXT AS | ||
'MODULE_PATHNAME' | ||
LANGUAGE C VOLATILE STRICT; | ||
|
||
COMMENT ON FUNCTION _pgr_boost_version() IS | ||
'pgRouting internal function'; | ||
|
||
--- | ||
|
||
CREATE OR REPLACE FUNCTION _pgr_build_type() | ||
RETURNS TEXT AS | ||
'MODULE_PATHNAME' | ||
LANGUAGE C VOLATILE STRICT; | ||
|
||
COMMENT ON FUNCTION _pgr_build_type() IS | ||
'pgRouting internal function'; | ||
|
||
--- | ||
|
||
CREATE OR REPLACE FUNCTION _pgr_compilation_date() | ||
RETURNS TEXT AS | ||
'MODULE_PATHNAME' | ||
LANGUAGE C VOLATILE STRICT; | ||
|
||
COMMENT ON FUNCTION _pgr_compilation_date() IS | ||
'pgRouting internal function'; | ||
|
||
--- | ||
|
||
CREATE OR REPLACE FUNCTION _pgr_compiler_version() | ||
RETURNS TEXT AS | ||
'MODULE_PATHNAME' | ||
LANGUAGE C VOLATILE STRICT; | ||
|
||
COMMENT ON FUNCTION _pgr_compiler_version() IS | ||
'pgRouting internal function'; | ||
|
||
--- | ||
|
||
CREATE OR REPLACE FUNCTION _pgr_git_hash() | ||
RETURNS TEXT AS | ||
'MODULE_PATHNAME' | ||
LANGUAGE C VOLATILE STRICT; | ||
|
||
COMMENT ON FUNCTION _pgr_compilation_date() IS | ||
'pgRouting internal function'; | ||
|
||
--- | ||
|
||
CREATE OR REPLACE FUNCTION _pgr_lib_version() | ||
RETURNS TEXT AS | ||
'MODULE_PATHNAME' | ||
LANGUAGE C VOLATILE STRICT; | ||
|
||
COMMENT ON FUNCTION _pgr_lib_version() IS | ||
'pgRouting internal function'; | ||
|
||
--- | ||
|
||
CREATE OR REPLACE FUNCTION _pgr_pgsql_version() | ||
RETURNS TEXT AS | ||
'MODULE_PATHNAME' | ||
LANGUAGE C VOLATILE STRICT; | ||
|
||
COMMENT ON FUNCTION _pgr_pgsql_version() IS | ||
'pgRouting internal function'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/*PGR-GNU***************************************************************** | ||
Copyright (c) 2019 pgRouting developers | ||
Mail: project@pgrouting.org | ||
Developer: | ||
Copyright (c) 2019 Celia Virginia Vergara Castillo | ||
------ | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
********************************************************************PGR-GNU*/ | ||
|
||
|
||
|
||
CREATE OR REPLACE FUNCTION pgr_full_version( | ||
OUT version TEXT, | ||
OUT build_type TEXT, | ||
OUT library TEXT, | ||
OUT PostgreSQL TEXT, | ||
OUT compiler TEXT, | ||
OUT boost TEXT, | ||
OUT hash TEXT | ||
) | ||
RETURNS Record AS | ||
$BODY$ | ||
SELECT pgr_version(), | ||
_pgr_build_type(), | ||
_pgr_lib_version(), | ||
_pgr_pgsql_version(), | ||
_pgr_compiler_version(), | ||
_pgr_boost_version(), | ||
_pgr_git_hash() | ||
$BODY$ | ||
LANGUAGE sql IMMUTABLE; | ||
|
||
COMMENT ON FUNCTION pgr_full_version() IS | ||
'pgr_full_version | ||
- Documentation | ||
- ${PGROUTING_DOC_LINK}/pgr_full_version.html | ||
'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/*PGR-GNU***************************************************************** | ||
Copyright (c) 2019 pgRouting developers | ||
Mail: project@pgrouting.org | ||
Developer: | ||
Copyright (c) 2019 Celia Virginia Vergara Castillo | ||
------ | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
********************************************************************PGR-GNU*/ | ||
|
||
CREATE OR REPLACE FUNCTION pgr_version() | ||
RETURNS TEXT AS | ||
'MODULE_PATHNAME' | ||
LANGUAGE C VOLATILE STRICT; | ||
|
||
COMMENT ON FUNCTION pgr_version() IS | ||
'pgr_version | ||
- Documentation | ||
- ${PGROUTING_DOC_LINK}/pgr_version.html | ||
'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ADD_LIBRARY(version OBJECT | ||
version.c | ||
_version.c | ||
) |
Oops, something went wrong.