Update of /cvsroot/monetdb/sql/src/test/Skyserver
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32516

Modified Files:
      Tag: SQL_2-24
        Skyserver_dropFunctions_v6.sql Skyserver_functions_v6.sql 
Log Message:
add missing function...


U Skyserver_dropFunctions_v6.sql
Index: Skyserver_dropFunctions_v6.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Skyserver/Skyserver_dropFunctions_v6.sql,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -u -d -r1.1.2.7 -r1.1.2.8
--- Skyserver_dropFunctions_v6.sql      6 Jun 2008 14:46:04 -0000       1.1.2.7
+++ Skyserver_dropFunctions_v6.sql      10 Jun 2008 20:14:46 -0000      1.1.2.8
@@ -1,3 +1,4 @@
+DROP FUNCTION fGetUrlExpEq;
 DROP FUNCTION fGetNearestObjAllEq;
 DROP FUNCTION fGetUrlFitsSpectrum;
 DROP FUNCTION fGetUrlFrameImg;

U Skyserver_functions_v6.sql
Index: Skyserver_functions_v6.sql
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/Skyserver/Skyserver_functions_v6.sql,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -d -r1.1.2.10 -r1.1.2.11
--- Skyserver_functions_v6.sql  8 Jun 2008 18:25:05 -0000       1.1.2.10
+++ Skyserver_functions_v6.sql  10 Jun 2008 20:14:46 -0000      1.1.2.11
@@ -2310,3 +2310,15 @@
        ORDER BY distance ASC LIMIT 1);   -- order by needed to get the closest 
one.
 END;
 
+CREATE FUNCTION fGetUrlExpEq(ra float, "dec" float)
+returns varchar(256)
+begin
+        declare WebServerURL varchar(500);
+        set WebServerURL = 'http://localhost/';
+        select cast(value as varchar(500)) into WebServerURL 
+                from SiteConstants
+                where name ='WebServerURL';
+        return WebServerURL + 'tools/explore/obj.asp?ra='
+                + ltrim(cast (round(ra,6) as varchar(10))) + '&"dec"=' + 
ltrim(cast(round("dec",6)  as varchar(10)));
+end;
+


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to