The case for this patch is that you can do sql queries with 1.1e+1 to say,
or 1.1e01, but if you try 1.1e1 will give you an error.

I try it on MySQL 3.23.39 and 3.23.33. I think this is a very old and not
seen bug.

Regards.

-- 
Cristian Paslaru
http://devel.iasi.ro


-------- cut --------
diff -ruN mysql-3.23.39.orig/sql/sql_lex.cc mysql-3.23.39/sql/sql_lex.cc
--- mysql-3.23.39.orig/sql/sql_lex.cc   Tue Jun 12 22:07:26 2001
+++ mysql-3.23.39/sql/sql_lex.cc        Wed Jun 27 12:22:35 2001
@@ -655,7 +655,7 @@
          state= STATE_CHAR;
          break;
        }
-       if (!isdigit(yyGet()))
+       if (c == '-' || c == '+' && !isdigit(yyGet()))
        {                               // No digit after sign
          state= STATE_CHAR;
          break;



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to