[Monetdb-developers] [Monetdb-sql-checkins] sql/src/server sql_parser.mx, , 1.291, 1.292 sql_updates.mx, , 1.145, 1.146

Stefan Manegold Stefan.Manegold at cwi.nl
Tue Sep 16 18:26:16 CEST 2008


On Tue, Sep 16, 2008 at 02:55:45PM +0000, Romulo Goncalves wrote:
> Update of /cvsroot/monetdb/sql/src/server
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12591
> 
> Modified Files:
> 	sql_parser.mx sql_updates.mx 
> Log Message:
> The number of records should be type lng 
> to allow the load of billions of records in a single copy command.

[...]

> U sql_updates.mx
> Index: sql_updates.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/sql/src/server/sql_updates.mx,v
> retrieving revision 1.145
> retrieving revision 1.146
> diff -u -d -r1.145 -r1.146
> --- sql_updates.mx	7 Sep 2008 14:28:00 -0000	1.145
> +++ sql_updates.mx	16 Sep 2008 14:55:42 -0000	1.146
> @@ -1411,11 +1411,11 @@
>  	char *ssep = (seps->h->next->next)?seps->h->next->next->data.sval:"\"";
>  	char *ns = (null_string)?null_string:"null";
>  	list *slist;
> -	int nr = (nr_offset)?nr_offset->h->data.i_val:-1;
> -	int offset = (nr_offset)?nr_offset->h->next->data.i_val:0;
> +	lng nr = (nr_offset)?nr_offset->h->data.i_val:-1;
	^^^                                     ^
> +	lng offset = (nr_offset)?nr_offset->h->next->data.i_val:0;
	^^^                                               ^
shouldn't these be "l_val", now?
                    ^

>  
> -	assert(!nr_offset || nr_offset->h->type == type_int);
> -	assert(!nr_offset || nr_offset->h->next->type == type_int);
> +	assert(!nr_offset || nr_offset->h->type == type_lng);
	                                                ^^^
> +	assert(!nr_offset || nr_offset->h->next->type == type_lng);
	                                                      ^^^
>  	if (sname && !(s=mvc_bind_schema(sql, sname))) {
>  		(void) sql_error(sql, 02, "COPY INTO: no such schema '%s'", sname);
>  		return NULL;

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the developers-list mailing list