List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:February 14 2000 3:02am
Subject:How to extend SQL in MySQL
View as plain text  
>>>>> "Ma" == Ma Fangyan <mfangyan@stripped> writes:

Ma> Hi,
Ma>    I want to add some new SQL statements in MySQL(such as:CHECK table 
Ma> tablename), and I do as following:
Ma> 1. Add new symbol(CHECK) in lex.h
Ma> 2. In sql_yacc.h :
Ma>   Define a new token(CHECK).
Ma>   define a new type(check).
Ma>   add 'check' to verb_clause list.
Ma>   define the action of 'check'.

Ma> But I will get ERROR 1064:You have an error in your SQL syntax near 'check 
Ma> table tab1' at line 1.

The above looks ok.

Can you please send a context diff of lex.h and sql_yacc.yy to
developer@stripped ?

How to extend SQL in MySQLMa Fangyan14 Feb
  • How to extend SQL in MySQLMichael Widenius14 Feb
  • Re: How to extend SQL in MySQLWei He14 Feb