If you consider this a bug, please report ;-)

Thanks!

Stefan

On Thu, Aug 16, 2012 at 10:46:53AM +0200, Martin Kersten wrote:
> Changeset: 9e78eccb3fb3 for MonetDB
> URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9e78eccb3fb3
> Modified Files:
>       sql/backends/monet5/datacell/Tests/dctemper00.sql
>       sql/backends/monet5/datacell/emitter.c
>       sql/backends/monet5/datacell/receptor.c
> Branch: default
> Log Message:
> 
> Hack to circumvent SQL implementation issue
> The SQL procedural code can not properly handle the
> case where an attribute of a select is also part of
> the target table.
> 
> 
> diffs (52 lines):
> 
> diff --git a/sql/backends/monet5/datacell/Tests/dctemper00.sql 
> b/sql/backends/monet5/datacell/Tests/dctemper00.sql
> --- a/sql/backends/monet5/datacell/Tests/dctemper00.sql
> +++ b/sql/backends/monet5/datacell/Tests/dctemper00.sql
> @@ -12,7 +12,7 @@ create table datacell.temperature(
>      tmp decimal(4,2)
>  );
>  
> -create table datacell.warnings (msg string, ts time with time zone, location 
> string);
> +create table datacell.warnings (msg string, ts time with time zone, loc 
> string);
>  create table datacell.templog( ts timestamp with time zone, cnt integer);
>  
>  call datacell.receptor('datacell.temperature','localhost',50550);
> diff --git a/sql/backends/monet5/datacell/emitter.c 
> b/sql/backends/monet5/datacell/emitter.c
> --- a/sql/backends/monet5/datacell/emitter.c
> +++ b/sql/backends/monet5/datacell/emitter.c
> @@ -35,7 +35,7 @@
>  #include "dcsocket.h"
>  #include "stream_socket.h"
>  
> -#define _DEBUG_EMITTER_
> +/* #define _DEBUG_EMITTER_ */
>  
>  static Emitter emAnchor = NULL;
>  
> @@ -105,7 +105,6 @@ EMemitterStartInternal(int *ret, str *tb
>       em->delay = delay;
>       em->lastseen = *timestamp_nil;
>       /*
> -      * @-
>        * All tables are prepended with a default tick bat.
>        * It becomes the synchronization handle.
>        */
> diff --git a/sql/backends/monet5/datacell/receptor.c 
> b/sql/backends/monet5/datacell/receptor.c
> --- a/sql/backends/monet5/datacell/receptor.c
> +++ b/sql/backends/monet5/datacell/receptor.c
> @@ -41,7 +41,7 @@
>  #include "stream_socket.h"
>  #include "mal_builder.h"
>  
> -#define _DEBUG_RECEPTOR_ 
> +/* #define _DEBUG_RECEPTOR_  */
>  
>  /* default settings */
>  #define RCHOST "localhost"
> @@ -495,7 +495,6 @@ parse:
>  #endif
>  }
>  /*
> - * @-
>   * A short cut is to generate the events based upon the interpretation
>   * of a scenario file. Much like the one used in the sensor.
>   * It is processed multiple times. The header is the delay imposed.
> _______________________________________________
> Checkin-list mailing list
> checkin-l...@monetdb.org
> http://mail.monetdb.org/mailman/listinfo/checkin-list
> 
> 

-- 
| Stefan.Manegold @ CWI.nl | DB Architectures (INS1) |
| http://CWI.nl/~manegold/ | Science Park 123 (L321) |
| Tel.: +31 (0)20 592-4212 | 1098 XG Amsterdam  (NL) |

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Monetdb-developers mailing list
Monetdb-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/monetdb-developers

Reply via email to