Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
MySQL++ - Programming with the C++ API to MySQL
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Variable division in stored procedures causes 5.0.4 (NT) server to crash.

Variable division in stored procedures causes 5.0.4 (NT) server to crash.

2005-05-04       - By Mark Smith

 Back
Folks,

Perhaps this is not allowed but in debugging my new stored procedure, I noticed
that the following line (the SET statement) causes the MySQL server running on
Windows 2000 to crash.

Is this a known problem or not allowed?  I tried a wide verity of different
options like using the CAST function, nothing seems to work.  My original SET
statement was (result was declared as an INT):  SET result = CEILING(numerator
/ denominator);

Sample procedure--
-- ---- ---- ---- ---- ---- ----
CREATE PROCEDURE divide(numerator INT, denominator INT)
BEGIN
 DECLARE result FLOAT;

 SET result = numerator / denominator;
END;

Thanks,

Mark Smith

status information -
root@(protected)~> status//
-- ---- ------
mysql  Ver 14.9 Distrib 5.0.4-beta, for Win32 (ia32)

Connection id:          1
SSL:                    Not in use
Using delimiter:        //
Server version:         5.0.4-beta-nt-log
Protocol version:       10
Connection:             localhost via TCP/IP
Client characterset:    latin1
Server characterset:    latin1
TCP port:               3306
-- ---- ------

--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe:    http://lists.mysql.com/win32?unsub=mysql@(protected)


Earn $52 per hosting referral at Lunarpages.