Login Register Actian.com  

Actian Community Forum


Go Back   Actian Community Forums > Vectorwise > Vectorwise Discussion
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2010-08-09   #1 (permalink)
Ingres Community
 
kuonirat's Avatar
 
Join Date: May 2010
Location: Poland
Posts: 338
Blog Entries: 3
Default Incorrect SIZE() result (RESOLVED)

Hi!

Take a look at this:

Code:
drop table tvw;
drop table ti;
create table tvw ( c varchar(255) not null) with structure = vectorwise;
create table ti ( c varchar(255) not null);

insert into tvw values('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa');
insert into ti values('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa');

select size(c) as s from tvw;
select size(c) as s from ti;

\g
The result is:

Code:
* * * * * * * * * * * * Executing . . .

(1 row)
(1 row)

┌─────────────┐
│s            │
├─────────────┤
│           -1│
└─────────────┘
(1 row)

┌─────────────┐
│s            │
├─────────────┤
│          255│
└─────────────┘
(1 row)
which is correct for standard Ingres tables, but incorrect for VW.

Best regards!
__________________
Konrad Procak
kuonirat is offline   Reply With Quote
Old 2010-08-09   #2 (permalink)
Ingres Community
 
marcin's Avatar
 
Join Date: Oct 2008
Location: Amsterdam, NL
Posts: 277
Default

Thanks, Konrad, I think we should establish a rule: for every bug we get you a beer in "Spiz" (at least!). Then all your Fridays are happy days

Filed as Mantis #934, and almost resolved already.
marcin is offline   Reply With Quote
Old 2010-08-09   #3 (permalink)
Ingres Community
 
marcin's Avatar
 
Join Date: Oct 2008
Location: Amsterdam, NL
Posts: 277
Default

... and fixed/commited/tested, should be available in the next 1.0 build
marcin is offline   Reply With Quote
Old 2010-08-10   #4 (permalink)
Ingres Community
 
kuonirat's Avatar
 
Join Date: May 2010
Location: Poland
Posts: 338
Blog Entries: 3
Default

I also recommend "Koźlak" beer e. g. in "Academus", if You'd like to have a dark beer in Wrocław You can get "thin" beer in "Spiż" sometimes
__________________
Konrad Procak
kuonirat is offline   Reply With Quote
Old 2010-08-10   #5 (permalink)
Ingres Community
 
marcin's Avatar
 
Join Date: Oct 2008
Location: Amsterdam, NL
Posts: 277
Default

Always new forums are a good method of exchanging useful information
marcin is offline   Reply With Quote
Old 2010-09-02   #6 (permalink)
Moderator
 
Join Date: Aug 2009
Location: Redwood City, CA
Posts: 297
Blog Entries: 1
Default

This issue is fixed in the now available 1.0/11402 build.
zelaine is offline   Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2011 Actian Corporation. All Rights Reserved