
From chicks@widomaker.com Thu May  2 14:25:58 1996
Date: Tue, 30 Apr 1996 14:04:25 -0400 (EDT)
From: Christopher Hicks <chicks@widomaker.com>
To: msql-list@bunyip.com
Subject: [mSQL] Test

I just installed the latest version of msql on my linux box.  After 
figuring out what directory I was supposed to be in to "make target" all 
went pretty well until I tried to test it.

I was running the "rtest" program.  Test 4 was a problem.  The test tried
to make a key field NULL.  The results correctly showed that the update
should have failed.  But the next sql statement in test 4, queries the
database and apparently expects that the failed update actually
effectively happened.  This seems to be a problem with the test and not
the daemon.  So, to plug on I did a "mv 4.res 4.out". 

Then on test 7, the order of the results was different, but otherwise 
everything was OK.  Again, I assumed it was not a 'serious' problem and 
plugged on.  Test 8 completed fine.

I've attached the results I got for tests 4 and 7.

"Killer" also blew up.  I've attched the msql.times.  I didn't try to 
pick apart what happened or why on this one.

Version Details :-

	msqladmin version 	1.0.13
	mSQL connection 	Localhost via UNIX socket
	mSQL server version 	1.0.13
	mSQL protocol version 	6
	mSQL TCP socket 	1112
	mSQL UNIX socket 	/dev/msql
	mSQL root user 		root

I was running everything logged in as root.  I'm running Red Hat Linux 
2.1.  There's plenty of free memory and hard drive space.

Thanks for any help or guidance you can provide.

</chris>                                              (chicks@widomaker.com)
Systems Administrator, Widomaker Communication Services

"Bother," said Pooh as he struggled with /etc/sendmail.cf, "It never
does quite what I want. I wish Christopher Robin was here."

  [Part 2, ""  Text/PLAIN  117 lines]
  [Unable to print this part]


  [Part 3, ""  Text/PLAIN  64 lines]
  [Unable to print this part]


  [Part 4, ""  Text/PLAIN  4 lines]
  [Unable to print this part]


Welcome to the miniSQL monitor.  Type \h for help.


mSQL >     -> 
Query buffer
------------

update test set user = 'David' where age = 26
[continue]
    -> 
Query OK.




mSQL > 
Query buffer
------------
select * from test
[continue]
    -> 
Query OK.

10 rows matched.

 +------------+----------+----------------------+
 | user       | age      | phone                |
 +------------+----------+----------------------+
 | David      | 26       | (075) 951450         |
 | paulp      | 25       | (075) 951412         |
 | fred       | 31       | (075) 951431         |
 | dummy1     | 99       | 99                   |
 | dummy2     | 97       | 97                   |
 | dummy3     | 95       | 95                   |
 | dummy4     | 93       | 93                   |
 | dummy5     | 91       | 91                   |
 | dummy6     | 89       | 89                   |
 | dummy7     | 87       | 87                   |
 +------------+----------+----------------------+



mSQL >     -> 
Query buffer
------------
update test set user = 'Bambi' where user = 'David'
[continue]
    -> 
Query OK.




mSQL > 
Query buffer
------------
select * from test
[continue]
    -> 
Query OK.

10 rows matched.

 +------------+----------+----------------------+
 | user       | age      | phone                |
 +------------+----------+----------------------+
 | Bambi      | 26       | (075) 951450         |
 | paulp      | 25       | (075) 951412         |
 | fred       | 31       | (075) 951431         |
 | dummy1     | 99       | 99                   |
 | dummy2     | 97       | 97                   |
 | dummy3     | 95       | 95                   |
 | dummy4     | 93       | 93                   |
 | dummy5     | 91       | 91                   |
 | dummy6     | 89       | 89                   |
 | dummy7     | 87       | 87                   |
 +------------+----------+----------------------+



mSQL >     -> 
Query buffer
------------
update test set age=60 where age > 90 and age < 96
[continue]
    -> 
Query OK.




mSQL > 
Query buffer
------------
select * from test
[continue]
    -> 
Query OK.

10 rows matched.

 +------------+----------+----------------------+
 | user       | age      | phone                |
 +------------+----------+----------------------+
 | Bambi      | 26       | (075) 951450         |
 | paulp      | 25       | (075) 951412         |
 | fred       | 31       | (075) 951431         |
 | dummy1     | 99       | 99                   |
 | dummy2     | 97       | 97                   |
 | dummy3     | 60       | 95                   |
 | dummy4     | 60       | 93                   |
 | dummy5     | 60       | 91                   |
 | dummy6     | 89       | 89                   |
 | dummy7     | 87       | 87                   |
 +------------+----------+----------------------+



mSQL >     -> 
Query buffer
------------
update test set phone = 'XXX' where user like 'dumm%'
[continue]
    -> 
Query OK.




mSQL > 
Query buffer
------------
select * from test
[continue]
    -> 
Query OK.

10 rows matched.

 +------------+----------+----------------------+
 | user       | age      | phone                |
 +------------+----------+----------------------+
 | Bambi      | 26       | (075) 951450         |
 | paulp      | 25       | (075) 951412         |
 | fred       | 31       | (075) 951431         |
 | dummy1     | 99       | XXX                  |
 | dummy2     | 97       | XXX                  |
 | dummy3     | 60       | XXX                  |
 | dummy4     | 60       | XXX                  |
 | dummy5     | 60       | XXX                  |
 | dummy6     | 89       | XXX                  |
 | dummy7     | 87       | XXX                  |
 +------------+----------+----------------------+



mSQL >     -> 
Query buffer
------------
update test2 set user = 'Nobody2' where fullname = NULL
[continue]
    -> 
Query OK.




mSQL > 
Query buffer
------------
select * from test2
[continue]
    -> 
Query OK.

4 rows matched.

 +------------+--------------------------------+
 | user       | fullname                       |
 +------------+--------------------------------+
 | paulp      | Paul Pyyvaara                  |
 | Bambi      | David J. Hughes                |
 | fred       | Fred O'Niell                   |
 | Nobody2    | NULL                           |
 +------------+--------------------------------+



mSQL > 
Query buffer
------------
update test2 set user = NULL where fullname = NULL
[continue]
    -> 

ERROR : Field "user" cannot be null


mSQL > 
Query buffer
------------
select * from test2
[continue]
    -> 
Query OK.

4 rows matched.

 +------------+--------------------------------+
 | user       | fullname                       |
 +------------+--------------------------------+
 | paulp      | Paul Pyyvaara                  |
 | Bambi      | David J. Hughes                |
 | fred       | Fred O'Niell                   |
 | Nobody2    | NULL                           |
 +------------+--------------------------------+



mSQL > 
Bye!


Welcome to the miniSQL monitor.  Type \h for help.


mSQL >     ->     ->     ->     ->     -> 
Query buffer
------------

select test2.fullname, test.age
        from test2,test
        where test.age > 20 
	order by test.age

[continue]
    -> 
Query OK.

32 rows matched.

 +--------------------------------+----------+
 | fullname                       | age      |
 +--------------------------------+----------+
 | NULL                           | 25       |
 | Fred O'Niell                   | 25       |
 | David J. Hughes                | 25       |
 | Paul Pyyvaara                  | 25       |
 | NULL                           | 26       |
 | Fred O'Niell                   | 26       |
 | David J. Hughes                | 26       |
 | Paul Pyyvaara                  | 26       |
 | NULL                           | 31       |
 | Fred O'Niell                   | 31       |
 | David J. Hughes                | 31       |
 | Paul Pyyvaara                  | 31       |
 | NULL                           | 60       |
 | NULL                           | 60       |
 | NULL                           | 60       |
 | Fred O'Niell                   | 60       |
 | Fred O'Niell                   | 60       |
 | Fred O'Niell                   | 60       |
 | David J. Hughes                | 60       |
 | David J. Hughes                | 60       |
 | David J. Hughes                | 60       |
 | Paul Pyyvaara                  | 60       |
 | Paul Pyyvaara                  | 60       |
 | Paul Pyyvaara                  | 60       |
 | NULL                           | 97       |
 | Fred O'Niell                   | 97       |
 | David J. Hughes                | 97       |
 | Paul Pyyvaara                  | 97       |
 | NULL                           | 99       |
 | Fred O'Niell                   | 99       |
 | David J. Hughes                | 99       |
 | Paul Pyyvaara                  | 99       |
 +--------------------------------+----------+



mSQL >     ->     ->     ->     ->     ->     -> 
Query buffer
------------
select test2.fullname, test.age
        from test2,test
        where test2.user like 'B%'
	order by test2.user

[continue]
    -> 

ERROR : Unknown field "user"


mSQL >     ->     ->     ->     ->     ->     -> 
Query buffer
------------
select test2.fullname, test.age
        from test2,test
        where test2.user = test.user
	order by test2.fullname

[continue]
    -> 
Query OK.

3 rows matched.

 +--------------------------------+----------+
 | fullname                       | age      |
 +--------------------------------+----------+
 | David J. Hughes                | 26       |
 | Fred O'Niell                   | 31       |
 | Paul Pyyvaara                  | 25       |
 +--------------------------------+----------+



mSQL >     -> 
Bye!

mSQL Killer Test.     Test machine = Linux yakko 1.2.13 #1 Sun Aug 13 10:05:50 EDT 1995 i486
------------------------------------------------------------


Inserting 1000 rows into new keyed table gave :-
