Update of /cvsroot/monetdb/sql/src/test/Skyserver
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31566
Modified Files:
Tag: SQL_2-24
Skyserver_functions.sql
Log Message:
Correct funtion...
STR operator does not exist in our system...
U Skyserver_functions.sql
Index: Skyserver_functions.sql
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/Skyserver/Skyserver_functions.sql,v
retrieving revision 1.20
retrieving revision 1.20.2.1
diff -u -d -r1.20 -r1.20.2.1
--- Skyserver_functions.sql 11 Mar 2008 19:37:42 -0000 1.20
+++ Skyserver_functions.sql 23 Jun 2008 06:59:04 -0000 1.20.2.1
@@ -711,7 +711,12 @@
-- seconds
SET d = MS_ROUND( 60.0 * (d-nd),precision,truncat );
-- SET d = 60.0 * (d-nd);
- SET q = LTRIM(STR(d,precision));
+ IF (precision < 1)
+ THEN SET q = LTRIM(cast( round(d, precision) as varchar(7)));
+ END IF;
+ IF (precision > 10)
+ THEN SET q = LTRIM(cast( round(d, precision) as varchar(16)));
+ END IF;
SET t = MS_STUFF(t,10+precision-LENGTH(q),LENGTH(q), q);
--
RETURN(s||t);
-------------------------------------------------------------------------
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