Diff for /parser3/tests/results/388-sql.processed between versions 1.2 and 1.14

version 1.2, 2017/12/07 00:55:12 version 1.14, 2024/09/28 09:10:06
Line 1 Line 1
 Content-Type: text/html  Content-Type: text/html
 Content-Length: 2755  Content-Length: 4683
   
 1. 2 + 2 = 4  
 2. void  
 2.1 2.2 2.3 Type: parser.runtime,  
 Source: sqlite://****,          1. 2 + 2 = 4
 Comment: must return nothing  
 2.4 Type: parser.runtime,  
 Source: sql,          2. void
 Comment: called with invalid option  
 2.5 Type: sql.execute,          2.1     
 Source: query,  
 Comment: bind variables not supported yet          
 3. int/double  
 3.1 2 int          
 3.2 Type: parser.runtime,  
 Source: sql,          2.3 
 Comment: produced no result, but no default option specified          
 3.3 1          Exception type: sql.execute,
 3.4 -2 double          Source: select * from pets,
 3.5 Type: parser.runtime,          Comment: must return nothing
 Source: sql,  
 Comment: produced no result, but no default option specified          2.4 
 3.6 1          
 4. hash          Exception type: parser.runtime,
 4.1 {          Source: sql,
           Comment: called with invalid option
   
           2.5 
           
           Exception type: sql.execute,
           Source: query,
           Comment: bind variables not supported yet
   
   
           2.6 Multiple queries:   
           2.8 Multiple queries, data in first query:  
           
           Exception type: sql.execute,
           Source: select 2+2 ; delete from pets where pet='',
           Comment: must return nothing
    
           2.9 Multiple queries, data in second query: 
           
           Exception type: sql.execute,
           Source: delete from pets where pet='' ; select 2+2,
           Comment: must return nothing
   
   
   
           3. int/double
   
           3.1  2 int
           3.2 
           
           Exception type: parser.runtime,
           Source: sql,
           Comment: produced no result, but no default option specified
   
           3.3 1
   
           3.4  -2 double
           3.5 
           
           Exception type: parser.runtime,
           Source: sql,
           Comment: produced no result, but no default option specified
   
           3.6 1
   
           3.7 Multiple queries, data in first query:  4 
           3.8 Multiple queries, data in second query:  4 
           3.9 Multiple queries, data in both queries: 
           
           Exception type: sql.execute,
           Source: select 2+2 ; select 3+3 ,
           Comment: result must contain exactly one column
   
   
   
           4. hash
   
           4.1     
           {
         "cat":{          "cat":{
                 "food":"milk",                  "food":"milk",
                 "aggressive":"'very'",                  "aggressive":"'very'",
Line 35  Comment: produced no result, but no defa Line 93  Comment: produced no result, but no defa
                 "aggressive":"\"never\"",                  "aggressive":"\"never\"",
                 "weigth":"10"                  "weigth":"10"
         },          },
           "hamster":{
                   "food":"grain",
                   "aggressive":"",
                   "weigth":"1"
           },
         "parrot":{          "parrot":{
                 "food":"grain",                  "food":"grain",
                 "aggressive":"alwayws",                  "aggressive":"alwayws",
                 "weigth":"1"                  "weigth":"1"
         }          }
 }  }
 4.2 {  
           4.2     
           {
         "cat":[          "cat":[
                 {"pet":"cat","food":"milk","aggressive":"'very'","weigth":"5"}                  {"pet":"cat","food":"milk","aggressive":"'very'","weigth":"5"}
         ],          ],
         "dog":[          "dog":[
                 {"pet":"dog","food":"bone","aggressive":"\"never\"","weigth":"10"}                  {"pet":"dog","food":"bone","aggressive":"\"never\"","weigth":"10"}
         ],          ],
           "hamster":[
                   {"pet":"hamster","food":"grain","aggressive":"","weigth":"1"}
           ],
         "parrot":[          "parrot":[
                 {"pet":"parrot","food":"grain","aggressive":"alwayws","weigth":"1"}                  {"pet":"parrot","food":"grain","aggressive":"alwayws","weigth":"1"}
         ]          ]
 }  }
 4.3 {  
           4.3     
           {
         "cat":"milk",          "cat":"milk",
         "dog":"bone",          "dog":"bone",
           "hamster":"grain",
         "parrot":"grain"          "parrot":"grain"
 }  }
 4.4 Type: parser.runtime,  
 Source: sqlite://****,          4.4 
 Comment: only 2 columns allowed for $.type[string].          
 4.5. {          Exception type: sql.execute,
           Source: select * from pets,
           Comment: only 2 columns allowed for $.type[string].
   
   
           4.5.    
           {
         "dog":[          "dog":[
                 {"pet":"dog","food":"bone","aggressive":"\"never\"","weigth":"10"}                  {"pet":"dog","food":"bone","aggressive":"\"never\"","weigth":"10"}
         ]          ]
 }  }
 5. table  
 5.1 [          4.6 
           
           Exception type: sql.execute,
           Source: select 'dup', pet from pets,
           Comment: duplicate key
   
   
           4.7     
           {
           "cat":true,
           "dog":true,
           "hamster":true,
           "parrot":true
   }
   
           4.7.1   
           {
           "'very'":true,
           "\"never\"":true,
           "":true,
           "alwayws":true
   }
   
           4.8     
           {
           "milk":[
                   {"key":"milk","pet":"cat"}
           ],
           "bone":[
                   {"key":"bone","pet":"dog"}
           ],
           "grain":[
                   {"key":"grain","pet":"hamster"},
                   {"key":"grain","pet":"parrot"}
           ]
   }
   
           4.9     
           {
           "milk":"cat",
           "bone":"dog",
           "grain":"hamster"
   }
   
   
           5. table
   
           5.1     
           [
         {"pet":"cat","food":"milk","aggressive":"'very'","weigth":"5"},          {"pet":"cat","food":"milk","aggressive":"'very'","weigth":"5"},
         {"pet":"dog","food":"bone","aggressive":"\"never\"","weigth":"10"},          {"pet":"dog","food":"bone","aggressive":"\"never\"","weigth":"10"},
           {"pet":"hamster","food":"grain","aggressive":"","weigth":"1"},
         {"pet":"parrot","food":"grain","aggressive":"alwayws","weigth":"1"}          {"pet":"parrot","food":"grain","aggressive":"alwayws","weigth":"1"}
 ]  ]
 5.2. [  
           5.2.    
           [
         {"pet":"dog","food":"bone","aggressive":"\"never\"","weigth":"10"}          {"pet":"dog","food":"bone","aggressive":"\"never\"","weigth":"10"}
 ]  ]
 6. file  
 6.1 {          5.3 
           
           Exception type: sql.execute,
           Source: select * from pets,
           Comment: bind variables not supported yet
   
   
           5.4 
           
           Exception type: parser.runtime,
           Source: sql,
           Comment: called with invalid option
   
   
   
           6. file
   
           6.1     
           {
         "class":"file",          "class":"file",
         "name":"test.txt",          "name":"test.txt",
         "size":6,          "size":6,
Line 83  Comment: only 2 columns allowed for $.ty Line 229  Comment: only 2 columns allowed for $.ty
         "content-type":"text\/plain",          "content-type":"text\/plain",
         "text":"'very'"          "text":"'very'"
 }  }
 6.2 {  
           6.2     
           {
         "class":"file",          "class":"file",
         "name":"unknown",          "name":"unknown",
         "size":7,          "size":7,
Line 91  Comment: only 2 columns allowed for $.ty Line 239  Comment: only 2 columns allowed for $.ty
         "content-type":"unknown",          "content-type":"unknown",
         "text":"\"never\""          "text":"\"never\""
 }  }
 6.3 Type: parser.runtime,  
 Source: sqlite://****,          6.3 
 Comment: result must contain not more then 3 columns          
 6.4 Type: parser.runtime,          Exception type: sql.execute,
 Source: sql,          Source: select * from pets,
 Comment: produced no result          Comment: result must contain not more then 3 columns
 6.5 {  
   
           6.4 
           
           Exception type: parser.runtime,
           Source: sql,
           Comment: produced no result
   
   
           6.5     
           {
         "class":"file",          "class":"file",
         "name":"1",          "name":"1",
         "size":1,          "size":1,
         "mode":"binary",          "mode":"binary",
         "content-type":"1",          "content-type":"1",
         "text":"1"          "text":"1"
 } - bug!  }  - bug!
 6.6 Type: parser.runtime,  
 Source: sqlite://****,          6.6 
 Comment: result must not contain more then one row, three columns          
 6.7 Type: parser.runtime,          Exception type: sql.execute,
 Source: sql,          Source: select 1,2 from pets,
 Comment: called with invalid option          Comment: result must not contain more then one row, three columns
 6.8 "''test''"  
 7. string  
 7.1 Type: parser.runtime,          6.7 
 Source: sqlite://****,          
 Comment: result must contain exactly one column          Exception type: parser.runtime,
 7.2 Type: parser.runtime,          Source: sql,
 Source: sqlite://****,          Comment: called with invalid option
 Comment: result must not contain more then one row  
 7.3 Type: sql.execute,  
 Source: select 2+2,          6.8  "''test''"
 Comment: bind variables not supported yet  
 7.4 Type: parser.runtime,          7. string
 Source: sql,  
 Comment: called with invalid option          7.1 
 7.5 Type: parser.runtime,          
 Source: sql,          Exception type: sql.execute,
 Comment: produced no result, but no default option specified          Source: select * from pets,
 7.6 "default"          Comment: result must contain exactly one column
   
           7.2 
           
           Exception type: sql.execute,
           Source: select pet from pets,
           Comment: result must not contain more then one row
   
           7.3 
           
           Exception type: sql.execute,
           Source: select 2+2,
           Comment: bind variables not supported yet
   
           7.4 
           
           Exception type: parser.runtime,
           Source: sql,
           Comment: called with invalid option
   
           7.5 
           
           Exception type: parser.runtime,
           Source: sql,
           Comment: produced no result, but no default option specified
   
           7.6     
           "default"
   

Removed from v.1.2  
changed lines
  Added in v.1.14


E-mail: