<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 12:18 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 5/28/2013 10:14 PM, Daniel Kastl wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
What about just one "pgr_version()" function?<br>
I don't get the use case where we need two of them ;-)<br>
<br>
I think "pgr_version()" should then return the "full" version.<br>
</blockquote>
<br></div>
I'm fine with have to two functions.<br>
<br>
pgr_full_version() - this would be the full string with everything<br>
pgr_version() - this should match version of extension like:<br>
2.0.0-dev in pgrouting--2.0.0-dev.sql<br>
<br>
The full version string is what we want for bug reporting.<br>
The version is what you might want to use in an application to construct if clauses based on features available in this or that version of the software.<br></blockquote><div><br></div><div style>What about</div><div style>
<br></div><div style>pgr_version() -> should match version of extension<br></div><div style><div>pgr_version("full") -> full string with everything (could be also "debug")<br></div><div><br></div>
</div><div style>I know this is not really important discussion, but we did so well in decreasing the number of functions and then we're having multiple ones for just getting the version information ;-)</div><div style>
Also I had to add two pages to the function reference somehow.</div><div style><br></div><div style>I still like the idea to return a record, because someone could pick what is important if used for an application, like:</div>
<div style><br></div><div style><font face="courier new, monospace">SELECT * FROM pgr_version();</font></div><div style><br></div><div style><div><font face="courier new, monospace"><span style="font-size:12.800000190734863px">version | tag | build | hash | branch</span><br style="font-size:12.800000190734863px">
</font></div><div><div><font face="courier new, monospace"><span style="font-size:12.800000190734863px">----------+---------+-------+----------+---------------</span><br style="font-size:12.800000190734863px"></font></div>
</div><div><span style="font-family:'courier new',monospace;font-size:12.800000190734863px">2.0.0-dev | v2.0dev | 271 | g6eeef9b | sew-devel-2_0</span><span style="font-family:'courier new',monospace"> </span><br>
</div></div><div style><br></div><div style>So one could get the version with SELECT version FROM pgr_version() in case they really use it for some application for example;</div><div style><br></div><div style>Well, I think I can do the modification as well.</div>
<div style><br></div><div style>Daniel</div><div style><br></div><div style><br></div><div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
This seems simple and convenient to provide and is a straight forward explanation of what they are for.<br>
<br>
-Steve<div class=""><div class="h5"><br>
______________________________<u></u>_________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/pgrouting-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG & Georepublic Japan<br>eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66,99,171)" target="_blank">daniel.kastl@georepublic.de</a><br>
Web: <a href="http://georepublic.de/" style="color:rgb(66,99,171)" target="_blank">http://georepublic.de</a></span>
</div></div>