mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
bb2d3eaa30
BitKeeper/etc/ignore: auto-union BitKeeper/etc/logging_ok: auto-union Build-tools/Do-compile: Auto merged VC++Files/sql/mysqld.dsp: Auto merged client/Makefile.am: Auto merged client/mysql.cc: Auto merged BitKeeper/deleted/.del-acinclude.m4~f4ab416bac5003: Auto merged client/mysqltest.c: Auto merged include/my_base.h: Auto merged innobase/dict/dict0dict.c: Auto merged innobase/dict/dict0load.c: Auto merged innobase/include/dict0dict.h: Auto merged innobase/include/row0mysql.h: Auto merged innobase/os/os0file.c: Auto merged innobase/srv/srv0srv.c: Auto merged libmysql/libmysql.c: Auto merged myisam/mi_check.c: Auto merged myisam/mi_rnext_same.c: Auto merged myisam/mi_write.c: Auto merged myisam/sort.c: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/r/ctype_ucs.result: Auto merged mysql-test/r/ctype_ujis.result: Auto merged mysql-test/r/gis-rtree.result: Auto merged mysql-test/r/group_by.result: Auto merged mysql-test/r/merge.result: Auto merged mysql-test/r/metadata.result: Auto merged mysql-test/r/ndb_alter_table.result: Auto merged mysql-test/r/ps_1general.result: Auto merged mysql-test/r/insert_update.result: Auto merged mysql-test/r/timezone2.result: Auto merged mysql-test/r/type_enum.result: Auto merged mysql-test/r/variables.result: Auto merged mysql-test/t/ctype_ucs.test: Auto merged mysql-test/t/merge.test: Auto merged mysql-test/t/ps_1general.test: Auto merged mysql-test/t/subselect.test: Auto merged mysql-test/t/system_mysql_db_fix.test: Auto merged mysql-test/t/variables.test: Auto merged ndb/include/ndbapi/NdbConnection.hpp: Auto merged ndb/include/ndbapi/NdbDictionary.hpp: Auto merged ndb/src/common/util/version.c: Auto merged ndb/src/kernel/blocks/dbacc/DbaccInit.cpp: Auto merged ndb/src/kernel/blocks/dbacc/Makefile.am: Auto merged ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Auto merged ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: Auto merged ndb/src/kernel/blocks/dblqh/DblqhInit.cpp: Auto merged ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Auto merged ndb/src/kernel/blocks/dbtux/Dbtux.hpp: Auto merged ndb/src/ndbapi/NdbBlob.cpp: Auto merged ndb/src/ndbapi/NdbConnection.cpp: Auto merged ndb/src/ndbapi/NdbDictionary.cpp: Auto merged ndb/src/ndbapi/NdbDictionaryImpl.cpp: Auto merged ndb/src/ndbapi/NdbDictionaryImpl.hpp: Auto merged ndb/src/ndbapi/NdbOperationExec.cpp: Auto merged ndb/src/ndbapi/NdbScanOperation.cpp: Auto merged ndb/test/ndbapi/Makefile.am: Auto merged scripts/make_win_src_distribution.sh: Auto merged scripts/mysql_install_db.sh: Auto merged sql/field.cc: Auto merged sql/ha_innodb.cc: Auto merged sql/ha_ndbcluster.cc: Auto merged sql/ha_ndbcluster.h: Auto merged sql/handler.cc: Auto merged sql/item_cmpfunc.cc: Auto merged sql/item_create.h: Auto merged sql/item_func.cc: Auto merged sql/item_geofunc.cc: Auto merged sql/item_row.cc: Auto merged sql/item_strfunc.cc: Auto merged sql/item_strfunc.h: Auto merged sql/item_sum.cc: Auto merged sql/item_sum.h: Auto merged sql/log.cc: Auto merged sql/log_event.cc: Auto merged sql/mysqld.cc: Auto merged sql/net_serv.cc: Auto merged sql/password.c: Auto merged sql/protocol.cc: Auto merged sql/repl_failsafe.cc: Auto merged sql/set_var.cc: Auto merged sql/slave.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_cache.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_derived.cc: Auto merged sql/sql_do.cc: Auto merged sql/sql_handler.cc: Auto merged sql/sql_help.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_repl.cc: Auto merged sql/sql_show.cc: Auto merged sql/sql_union.cc: Auto merged sql/examples/ha_archive.cc: Auto merged sql/strfunc.cc: Auto merged sql/table.cc: Auto merged sql/table.h: Auto merged sql/tztime.h: Auto merged sql/udf_example.cc: Auto merged sql/unireg.cc: Auto merged Makefile.am: Simple merge client/mysqldump.c: Simple merge configure.in: Simple merge libmysqld/lib_sql.cc: Automatic merge mysql-test/r/func_str.result: Automatic merge mysql-test/r/grant.result: simple merge mysql-test/r/multi_update.result: automatc merge mysql-test/r/ps.result: automatic merge mysql-test/r/ps_2myisam.result: Automatic merge mysql-test/r/ps_3innodb.result: Automatic merge mysql-test/r/ps_4heap.result: Automatic merge mysql-test/r/ps_5merge.result: Automatic merge mysql-test/r/ps_6bdb.result: Automatic merge mysql-test/r/ps_7ndb.result: Automatic merge mysql-test/r/show_check.result: Automatic merge mysql-test/r/subselect.result: Automatic merge mysql-test/t/grant.test: Automatic merge mysql-test/t/multi_update.test: Automatic merge mysql-test/t/ps.test: Automatic merge mysql-test/t/show_check.test: Automatic merge ndb/docs/wl2077.txt: merge ndb/src/mgmsrv/main.cpp: merge scripts/mysql_fix_privilege_tables.sh: merge sql/item.cc: Merge (difficult) sql/item.h: simple merge sql/item_cmpfunc.h: Automatic merge sql/item_subselect.cc: Simple merge sql/item_subselect.h: Automatic merge sql/mysql_priv.h: Simple merge sql/slave.h: Automatic merge sql/sql_base.cc: Removed code that was backported to 4.1 sql/sql_class.h: Merge (some code moved to sql_insert.cc) sql/sql_db.cc: simple merge sql/sql_insert.cc: Merge (difficult as logic had changed both in 4.1 and 5.0) Some coded moved here from sql_class.h sql/sql_parse.cc: Merge (difficult) sql/sql_prepare.cc: Simple merge sql/sql_select.cc: Automatic merge sql/sql_table.cc: Simple merge sql/sql_update.cc: Difficult merge because of different logic for multi-updates sql/sql_yacc.yy: Simple merge tests/client_test.c: Simple merge
158 lines
5.8 KiB
C
158 lines
5.8 KiB
C
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
/* Functions to create an item. Used by lex.h */
|
|
|
|
Item *create_func_abs(Item* a);
|
|
Item *create_func_acos(Item* a);
|
|
Item *create_func_aes_encrypt(Item* a, Item* b);
|
|
Item *create_func_aes_decrypt(Item* a, Item* b);
|
|
Item *create_func_ascii(Item* a);
|
|
Item *create_func_asin(Item* a);
|
|
Item *create_func_bin(Item* a);
|
|
Item *create_func_bit_count(Item* a);
|
|
Item *create_func_bit_length(Item* a);
|
|
Item *create_func_coercibility(Item* a);
|
|
Item *create_func_ceiling(Item* a);
|
|
Item *create_func_char_length(Item* a);
|
|
Item *create_func_cast(Item *a, Cast_target cast_type, int len, CHARSET_INFO *cs);
|
|
Item *create_func_connection_id(void);
|
|
Item *create_func_conv(Item* a, Item *b, Item *c);
|
|
Item *create_func_cos(Item* a);
|
|
Item *create_func_cot(Item* a);
|
|
Item *create_func_crc32(Item* a);
|
|
Item *create_func_date_format(Item* a,Item *b);
|
|
Item *create_func_dayname(Item* a);
|
|
Item *create_func_dayofmonth(Item* a);
|
|
Item *create_func_dayofweek(Item* a);
|
|
Item *create_func_dayofyear(Item* a);
|
|
Item *create_func_degrees(Item *);
|
|
Item *create_func_exp(Item* a);
|
|
Item *create_func_find_in_set(Item* a, Item *b);
|
|
Item *create_func_floor(Item* a);
|
|
Item *create_func_found_rows(void);
|
|
Item *create_func_from_days(Item* a);
|
|
Item *create_func_get_lock(Item* a, Item *b);
|
|
Item *create_func_hex(Item *a);
|
|
Item *create_func_inet_aton(Item* a);
|
|
Item *create_func_inet_ntoa(Item* a);
|
|
|
|
Item *create_func_ifnull(Item* a, Item *b);
|
|
Item *create_func_instr(Item* a, Item *b);
|
|
Item *create_func_isnull(Item* a);
|
|
Item *create_func_lcase(Item* a);
|
|
Item *create_func_length(Item* a);
|
|
Item *create_func_ln(Item* a);
|
|
Item *create_func_locate(Item* a, Item *b);
|
|
Item *create_func_log2(Item* a);
|
|
Item *create_func_log10(Item* a);
|
|
Item *create_func_lpad(Item* a, Item *b, Item *c);
|
|
Item *create_func_ltrim(Item* a);
|
|
Item *create_func_md5(Item* a);
|
|
Item *create_func_mod(Item* a, Item *b);
|
|
Item *create_func_monthname(Item* a);
|
|
Item *create_func_nullif(Item* a, Item *b);
|
|
Item *create_func_oct(Item *);
|
|
Item *create_func_ord(Item* a);
|
|
Item *create_func_period_add(Item* a, Item *b);
|
|
Item *create_func_period_diff(Item* a, Item *b);
|
|
Item *create_func_pi(void);
|
|
Item *create_func_pow(Item* a, Item *b);
|
|
Item *create_func_current_user(void);
|
|
Item *create_func_radians(Item *a);
|
|
Item *create_func_release_lock(Item* a);
|
|
Item *create_func_repeat(Item* a, Item *b);
|
|
Item *create_func_reverse(Item* a);
|
|
Item *create_func_rpad(Item* a, Item *b, Item *c);
|
|
Item *create_func_rtrim(Item* a);
|
|
Item *create_func_sec_to_time(Item* a);
|
|
Item *create_func_sign(Item* a);
|
|
Item *create_func_sin(Item* a);
|
|
Item *create_func_sha(Item* a);
|
|
Item *create_func_soundex(Item* a);
|
|
Item *create_func_space(Item *);
|
|
Item *create_func_sqrt(Item* a);
|
|
Item *create_func_strcmp(Item* a, Item *b);
|
|
Item *create_func_tan(Item* a);
|
|
Item *create_func_time_format(Item *a, Item *b);
|
|
Item *create_func_time_to_sec(Item* a);
|
|
Item *create_func_to_days(Item* a);
|
|
Item *create_func_ucase(Item* a);
|
|
Item *create_func_unhex(Item* a);
|
|
Item *create_func_uuid(void);
|
|
Item *create_func_version(void);
|
|
Item *create_func_weekday(Item* a);
|
|
Item *create_load_file(Item* a);
|
|
Item *create_func_is_free_lock(Item* a);
|
|
Item *create_func_is_used_lock(Item* a);
|
|
Item *create_func_quote(Item* a);
|
|
|
|
#ifdef HAVE_SPATIAL
|
|
|
|
Item *create_func_geometry_from_text(Item *a);
|
|
Item *create_func_as_wkt(Item *a);
|
|
Item *create_func_as_wkb(Item *a);
|
|
Item *create_func_srid(Item *a);
|
|
Item *create_func_startpoint(Item *a);
|
|
Item *create_func_endpoint(Item *a);
|
|
Item *create_func_exteriorring(Item *a);
|
|
Item *create_func_centroid(Item *a);
|
|
Item *create_func_envelope(Item *a);
|
|
Item *create_func_pointn(Item *a, Item *b);
|
|
Item *create_func_interiorringn(Item *a, Item *b);
|
|
Item *create_func_geometryn(Item *a, Item *b);
|
|
|
|
Item *create_func_equals(Item *a, Item *b);
|
|
Item *create_func_disjoint(Item *a, Item *b);
|
|
Item *create_func_intersects(Item *a, Item *b);
|
|
Item *create_func_touches(Item *a, Item *b);
|
|
Item *create_func_crosses(Item *a, Item *b);
|
|
Item *create_func_within(Item *a, Item *b);
|
|
Item *create_func_contains(Item *a, Item *b);
|
|
Item *create_func_overlaps(Item *a, Item *b);
|
|
|
|
Item *create_func_isempty(Item *a);
|
|
Item *create_func_issimple(Item *a);
|
|
Item *create_func_isclosed(Item *a);
|
|
|
|
Item *create_func_geometry_type(Item *a);
|
|
Item *create_func_dimension(Item *a);
|
|
Item *create_func_x(Item *a);
|
|
Item *create_func_y(Item *a);
|
|
Item *create_func_area(Item *a);
|
|
Item *create_func_glength(Item *a);
|
|
|
|
Item *create_func_numpoints(Item *a);
|
|
Item *create_func_numinteriorring(Item *a);
|
|
Item *create_func_numgeometries(Item *a);
|
|
|
|
Item *create_func_point(Item *a, Item *b);
|
|
|
|
#endif /*HAVE_SPATIAL*/
|
|
|
|
Item *create_func_compress(Item *a);
|
|
Item *create_func_uncompress(Item *a);
|
|
Item *create_func_uncompressed_length(Item *a);
|
|
|
|
Item *create_func_datediff(Item *a, Item *b);
|
|
Item *create_func_weekofyear(Item *a);
|
|
Item *create_func_makedate(Item* a,Item* b);
|
|
Item *create_func_addtime(Item* a,Item* b);
|
|
Item *create_func_subtime(Item* a,Item* b);
|
|
Item *create_func_timediff(Item* a,Item* b);
|
|
Item *create_func_maketime(Item* a,Item* b,Item* c);
|
|
Item *create_func_str_to_date(Item* a,Item* b);
|
|
Item *create_func_last_day(Item *a);
|