Hello, 

I have found discrepancy in ANALYZE statement between documentation and 
implementation. The very simple test case follows. The keyword 
"SAMPLE_SIZE" can not be used together with the keyword "TABLE" in SQL 
ANALYZE command and in case using "TABLE", the integer is compulsory. 

Regards, Stepan 

drop table if exists t1; 
create table t1 (id int); 
--http://www.h2database.com/html/grammar.html#analyze
analyze; --ok 
analyze sample_size 0; --ok 
analyze table t1; --NOK Error: Syntax error in SQL statement "analyze table 
t1[*]"; expected "integer"; 
analyze table t1 sample_size 0; --NOK Error: Syntax error in SQL statement 
"analyze table t1 sample_size[*] 0"; expected "integer"; 
analyze table t1 0; --ok 

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to