1 /* 2 * Copyright (C) 2000 Reinhard Müller <reinhard@src.gnome.org> 3 * Copyright (C) 2000 - 2002 Rodrigo Moya <rodrigo@gnome-db.org> 4 * Copyright (C) 2001 Carlos Perelló Marín <carlos@gnome-db.org> 5 * Copyright (C) 2001 - 2011 Vivien Malerba <malerba@gnome-db.org> 6 * Copyright (C) 2002 Gonzalo Paniagua Javier <gonzalo@src.gnome.org> 7 * Copyright (C) 2009 Murray Cumming <murrayc@murrayc.com> 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2 of the License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the 21 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 22 * Boston, MA 02110-1301, USA. 23 */ 24 25 #ifndef _GDA_STATEMENT_STRUCT_UNKNOWN_H_ 26 #define _GDA_STATEMENT_STRUCT_UNKNOWN_H_ 27 28 #include <glib.h> 29 #include <glib-object.h> 30 #include <sql-parser/gda-statement-struct-decl.h> 31 #include <sql-parser/gda-statement-struct-parts.h> 32 33 G_BEGIN_DECLS 34 35 /* 36 * Structure definition 37 */ 38 /** 39 * GdaSqlStatementUnknown: 40 * @any: 41 * @expressions: a list of #GdaSqlExpr pointers 42 * 43 * Represents any statement which type is not identified (any DDL statement or database specific dialect) 44 */ 45 struct _GdaSqlStatementUnknown { 46 GdaSqlAnyPart any; 47 GSList *expressions; 48 49 /*< private >*/ 50 /* Padding for future expansion */ 51 gpointer _gda_reserved1; 52 gpointer _gda_reserved2; 53 }; 54 55 /* 56 * Common operations 57 */ 58 GdaSqlStatementContentsInfo *_gda_sql_statement_unknown_get_infos (void); 59 60 /* 61 * Functions used by the parser 62 */ 63 void gda_sql_statement_unknown_take_expressions (GdaSqlStatement *stmt, GSList *expressions); 64 65 G_END_DECLS 66 67 #endif 68