mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
BitKeeper/deleted/.del-bt_compact.c: Delete: storage/bdb/btree/bt_compact.c BitKeeper/deleted/.del-bt_compare.c: Delete: storage/bdb/btree/bt_compare.c BitKeeper/deleted/.del-bt_conv.c: Delete: storage/bdb/btree/bt_conv.c BitKeeper/deleted/.del-bt_curadj.c: Delete: storage/bdb/btree/bt_curadj.c BitKeeper/deleted/.del-bt_cursor.c: Delete: storage/bdb/btree/bt_cursor.c BitKeeper/deleted/.del-bt_delete.c: Delete: storage/bdb/btree/bt_delete.c BitKeeper/deleted/.del-bt_method.c: Delete: storage/bdb/btree/bt_method.c BitKeeper/deleted/.del-bt_open.c: Delete: storage/bdb/btree/bt_open.c BitKeeper/deleted/.del-bt_put.c: Delete: storage/bdb/btree/bt_put.c BitKeeper/deleted/.del-bt_rec.c: Delete: storage/bdb/btree/bt_rec.c BitKeeper/deleted/.del-bt_reclaim.c: Delete: storage/bdb/btree/bt_reclaim.c BitKeeper/deleted/.del-bt_recno.c: Delete: storage/bdb/btree/bt_recno.c BitKeeper/deleted/.del-bt_rsearch.c: Delete: storage/bdb/btree/bt_rsearch.c BitKeeper/deleted/.del-bt_search.c: Delete: storage/bdb/btree/bt_search.c BitKeeper/deleted/.del-bt_split.c: Delete: storage/bdb/btree/bt_split.c BitKeeper/deleted/.del-bt_stat.c: Delete: storage/bdb/btree/bt_stat.c BitKeeper/deleted/.del-.IGNORE_ME: Delete: storage/bdb/build_unix/.IGNORE_ME BitKeeper/deleted/.del-Berkeley_DB.dsw: Delete: storage/bdb/build_win32/Berkeley_DB.dsw BitKeeper/deleted/.del-app_dsp.src: Delete: storage/bdb/build_win32/app_dsp.src BitKeeper/deleted/.del-app_dsp.src~dcf703e0c9c72e4a: Delete: storage/bdb/build_win64/app_dsp.src BitKeeper/deleted/.del-bt_upgrade.c: Delete: storage/bdb/btree/bt_upgrade.c BitKeeper/deleted/.del-bt_verify.c: Delete: storage/bdb/btree/bt_verify.c BitKeeper/deleted/.del-btree.src: Delete: storage/bdb/btree/btree.src BitKeeper/deleted/.del-db_java_xaj.mak: Delete: storage/bdb/build_win32/db_java_xaj.mak BitKeeper/deleted/.del-db_test.src: Delete: storage/bdb/build_win32/db_test.src BitKeeper/deleted/.del-dbkill.cpp: Delete: storage/bdb/build_win32/dbkill.cpp BitKeeper/deleted/.del-dllmain.c: Delete: storage/bdb/build_win32/dllmain.c BitKeeper/deleted/.del-dynamic_dsp.src: Delete: storage/bdb/build_win32/dynamic_dsp.src BitKeeper/deleted/.del-java_dsp.src: Delete: storage/bdb/build_win32/java_dsp.src BitKeeper/deleted/.del-libdb_tcl.def: Delete: storage/bdb/build_win32/libdb_tcl.def BitKeeper/deleted/.del-libdbrc.src: Delete: storage/bdb/build_win32/libdbrc.src BitKeeper/deleted/.del-small_dsp.src: Delete: storage/bdb/build_win32/small_dsp.src BitKeeper/deleted/.del-srcfile_dsp.src: Delete: storage/bdb/build_win32/srcfile_dsp.src BitKeeper/deleted/.del-static_dsp.src: Delete: storage/bdb/build_win32/static_dsp.src BitKeeper/deleted/.del-tcl_dsp.src: Delete: storage/bdb/build_win32/tcl_dsp.src BitKeeper/deleted/.del-db_test.src~2521827764f86c53: Delete: storage/bdb/build_win64/db_test.src BitKeeper/deleted/.del-dynamic_dsp.src~95360632a65b4e62: Delete: storage/bdb/build_win64/dynamic_dsp.src BitKeeper/deleted/.del-ex_repquote.src: Delete: storage/bdb/build_win64/ex_repquote.src BitKeeper/deleted/.del-getcwd.c: Delete: storage/bdb/clib/getcwd.c BitKeeper/deleted/.del-getopt.c: Delete: storage/bdb/clib/getopt.c BitKeeper/deleted/.del-java_dsp.src~e42f32427327f5b5: Delete: storage/bdb/build_win64/java_dsp.src BitKeeper/deleted/.del-libdbrc.src~d22fea70774c5e98: Delete: storage/bdb/build_win64/libdbrc.src BitKeeper/deleted/.del-memcmp.c: Delete: storage/bdb/clib/memcmp.c BitKeeper/deleted/.del-memmove.c: Delete: storage/bdb/clib/memmove.c BitKeeper/deleted/.del-raise.c: Delete: storage/bdb/clib/raise.c BitKeeper/deleted/.del-small_dsp.src~96bb604dd8041058: Delete: storage/bdb/build_win64/small_dsp.src BitKeeper/deleted/.del-snprintf.c: Delete: storage/bdb/clib/snprintf.c BitKeeper/deleted/.del-srcfile_dsp.src~45382c1414b89bb1: Delete: storage/bdb/build_win64/srcfile_dsp.src BitKeeper/deleted/.del-static_dsp.src~3f1945d094870d53: Delete: storage/bdb/build_win64/static_dsp.src BitKeeper/deleted/.del-strcasecmp.c: Delete: storage/bdb/clib/strcasecmp.c BitKeeper/deleted/.del-strdup.c: Delete: storage/bdb/clib/strdup.c BitKeeper/deleted/.del-strerror.c: Delete: storage/bdb/clib/strerror.c BitKeeper/deleted/.del-strtol.c: Delete: storage/bdb/clib/strtol.c BitKeeper/deleted/.del-tcl_dsp.src~7fd8c5914db07070: Delete: storage/bdb/build_win64/tcl_dsp.src BitKeeper/deleted/.del-aes_method.c: Delete: storage/bdb/crypto/aes_method.c BitKeeper/deleted/.del-crypto.c: Delete: storage/bdb/crypto/crypto.c BitKeeper/deleted/.del-crypto.html: Delete: storage/bdb/crypto/crypto.html BitKeeper/deleted/.del-crypto_stub.c: Delete: storage/bdb/common/crypto_stub.c BitKeeper/deleted/.del-db_byteorder.c: Delete: storage/bdb/common/db_byteorder.c BitKeeper/deleted/.del-db_clock.c: Delete: storage/bdb/common/db_clock.c BitKeeper/deleted/.del-db_err.c: Delete: storage/bdb/common/db_err.c BitKeeper/deleted/.del-db_getlong.c: Delete: storage/bdb/common/db_getlong.c BitKeeper/deleted/.del-db_idspace.c: Delete: storage/bdb/common/db_idspace.c BitKeeper/deleted/.del-db_log2.c: Delete: storage/bdb/common/db_log2.c BitKeeper/deleted/.del-mt19937db.c: Delete: storage/bdb/crypto/mersenne/mt19937db.c BitKeeper/deleted/.del-rijndael-alg-fst.c: Delete: storage/bdb/crypto/rijndael/rijndael-alg-fst.c BitKeeper/deleted/.del-rijndael-alg-fst.h: Delete: storage/bdb/crypto/rijndael/rijndael-alg-fst.h BitKeeper/deleted/.del-strtoul.c: Delete: storage/bdb/clib/strtoul.c BitKeeper/deleted/.del-util_arg.c: Delete: storage/bdb/common/util_arg.c BitKeeper/deleted/.del-util_cache.c: Delete: storage/bdb/common/util_cache.c BitKeeper/deleted/.del-util_log.c: Delete: storage/bdb/common/util_log.c BitKeeper/deleted/.del-util_sig.c: Delete: storage/bdb/common/util_sig.c BitKeeper/deleted/.del-vsnprintf.c: Delete: storage/bdb/clib/vsnprintf.c BitKeeper/deleted/.del-crdel.src: Delete: storage/bdb/db/crdel.src BitKeeper/deleted/.del-crdel_rec.c: Delete: storage/bdb/db/crdel_rec.c BitKeeper/deleted/.del-cxx_db.cpp: Delete: storage/bdb/cxx/cxx_db.cpp BitKeeper/deleted/.del-cxx_dbc.cpp: Delete: storage/bdb/cxx/cxx_dbc.cpp BitKeeper/deleted/.del-cxx_dbt.cpp: Delete: storage/bdb/cxx/cxx_dbt.cpp BitKeeper/deleted/.del-cxx_env.cpp: Delete: storage/bdb/cxx/cxx_env.cpp BitKeeper/deleted/.del-cxx_except.cpp: Delete: storage/bdb/cxx/cxx_except.cpp BitKeeper/deleted/.del-cxx_lock.cpp: Delete: storage/bdb/cxx/cxx_lock.cpp BitKeeper/deleted/.del-cxx_logc.cpp: Delete: storage/bdb/cxx/cxx_logc.cpp BitKeeper/deleted/.del-cxx_mpool.cpp: Delete: storage/bdb/cxx/cxx_mpool.cpp BitKeeper/deleted/.del-cxx_multi.cpp: Delete: storage/bdb/cxx/cxx_multi.cpp BitKeeper/deleted/.del-cxx_seq.cpp: Delete: storage/bdb/cxx/cxx_seq.cpp BitKeeper/deleted/.del-cxx_txn.cpp: Delete: storage/bdb/cxx/cxx_txn.cpp BitKeeper/deleted/.del-db.c: Delete: storage/bdb/db/db.c BitKeeper/deleted/.del-rijndael-api-fst.c: Delete: storage/bdb/crypto/rijndael/rijndael-api-fst.c BitKeeper/deleted/.del-rijndael-api-fst.h: Delete: storage/bdb/crypto/rijndael/rijndael-api-fst.h BitKeeper/deleted/.del-db.src: Delete: storage/bdb/db/db.src BitKeeper/deleted/.del-db_am.c: Delete: storage/bdb/db/db_am.c BitKeeper/deleted/.del-db_cam.c: Delete: storage/bdb/db/db_cam.c BitKeeper/deleted/.del-db_conv.c: Delete: storage/bdb/db/db_conv.c BitKeeper/deleted/.del-db_dispatch.c: Delete: storage/bdb/db/db_dispatch.c BitKeeper/deleted/.del-db_dup.c: Delete: storage/bdb/db/db_dup.c BitKeeper/deleted/.del-db_iface.c: Delete: storage/bdb/db/db_iface.c BitKeeper/deleted/.del-db_join.c: Delete: storage/bdb/db/db_join.c BitKeeper/deleted/.del-db_meta.c: Delete: storage/bdb/db/db_meta.c BitKeeper/deleted/.del-db_method.c: Delete: storage/bdb/db/db_method.c BitKeeper/deleted/.del-db_open.c: Delete: storage/bdb/db/db_open.c BitKeeper/deleted/.del-db_overflow.c: Delete: storage/bdb/db/db_overflow.c BitKeeper/deleted/.del-db_ovfl_vrfy.c: Delete: storage/bdb/db/db_ovfl_vrfy.c BitKeeper/deleted/.del-db_pr.c: Delete: storage/bdb/db/db_pr.c BitKeeper/deleted/.del-db_rec.c: Delete: storage/bdb/db/db_rec.c BitKeeper/deleted/.del-db_reclaim.c: Delete: storage/bdb/db/db_reclaim.c BitKeeper/deleted/.del-db_remove.c: Delete: storage/bdb/db/db_remove.c BitKeeper/deleted/.del-db_rename.c: Delete: storage/bdb/db/db_rename.c BitKeeper/deleted/.del-db_ret.c: Delete: storage/bdb/db/db_ret.c BitKeeper/deleted/.del-db185.c: Delete: storage/bdb/db185/db185.c BitKeeper/deleted/.del-db185_int.in: Delete: storage/bdb/db185/db185_int.in BitKeeper/deleted/.del-db_archive.c: Delete: storage/bdb/db_archive/db_archive.c BitKeeper/deleted/.del-db_checkpoint.c: Delete: storage/bdb/db_checkpoint/db_checkpoint.c BitKeeper/deleted/.del-db_deadlock.c: Delete: storage/bdb/db_deadlock/db_deadlock.c BitKeeper/deleted/.del-db_dump.c: Delete: storage/bdb/db_dump/db_dump.c BitKeeper/deleted/.del-db_dump185.c: Delete: storage/bdb/db_dump185/db_dump185.c BitKeeper/deleted/.del-db_hotbackup.c: Delete: storage/bdb/db_hotbackup/db_hotbackup.c BitKeeper/deleted/.del-db_load.c: Delete: storage/bdb/db_load/db_load.c BitKeeper/deleted/.del-db_setid.c: Delete: storage/bdb/db/db_setid.c BitKeeper/deleted/.del-db_setlsn.c: Delete: storage/bdb/db/db_setlsn.c BitKeeper/deleted/.del-db_stati.c: Delete: storage/bdb/db/db_stati.c BitKeeper/deleted/.del-db_truncate.c: Delete: storage/bdb/db/db_truncate.c BitKeeper/deleted/.del-db_upg.c: Delete: storage/bdb/db/db_upg.c BitKeeper/deleted/.del-db_upg_opd.c: Delete: storage/bdb/db/db_upg_opd.c BitKeeper/deleted/.del-db_vrfy.c: Delete: storage/bdb/db/db_vrfy.c BitKeeper/deleted/.del-db_vrfy_stub.c: Delete: storage/bdb/db/db_vrfy_stub.c BitKeeper/deleted/.del-db_vrfyutil.c: Delete: storage/bdb/db/db_vrfyutil.c BitKeeper/deleted/.del-README: Delete: storage/bdb/db_printlog/README BitKeeper/deleted/.del-btree.h: Delete: storage/bdb/dbinc/btree.h BitKeeper/deleted/.del-commit.awk: Delete: storage/bdb/db_printlog/commit.awk BitKeeper/deleted/.del-count.awk: Delete: storage/bdb/db_printlog/count.awk BitKeeper/deleted/.del-db_printlog.c: Delete: storage/bdb/db_printlog/db_printlog.c BitKeeper/deleted/.del-db_recover.c: Delete: storage/bdb/db_recover/db_recover.c BitKeeper/deleted/.del-db_stat.c: Delete: storage/bdb/db_stat/db_stat.c BitKeeper/deleted/.del-db_upgrade.c: Delete: storage/bdb/db_upgrade/db_upgrade.c BitKeeper/deleted/.del-db_verify.c: Delete: storage/bdb/db_verify/db_verify.c BitKeeper/deleted/.del-dbname.awk: Delete: storage/bdb/db_printlog/dbname.awk BitKeeper/deleted/.del-dd.sh: Delete: storage/bdb/db_stat/dd.sh BitKeeper/deleted/.del-fileid.awk: Delete: storage/bdb/db_printlog/fileid.awk BitKeeper/deleted/.del-logstat.awk: Delete: storage/bdb/db_printlog/logstat.awk BitKeeper/deleted/.del-pgno.awk: Delete: storage/bdb/db_printlog/pgno.awk BitKeeper/deleted/.del-range.awk: Delete: storage/bdb/db_printlog/range.awk BitKeeper/deleted/.del-rectype.awk: Delete: storage/bdb/db_printlog/rectype.awk BitKeeper/deleted/.del-status.awk: Delete: storage/bdb/db_printlog/status.awk BitKeeper/deleted/.del-txn.awk: Delete: storage/bdb/db_printlog/txn.awk BitKeeper/deleted/.del-crypto.h: Delete: storage/bdb/dbinc/crypto.h BitKeeper/deleted/.del-cxx_common.h: Delete: storage/bdb/dbinc/cxx_common.h BitKeeper/deleted/.del-cxx_except.h: Delete: storage/bdb/dbinc/cxx_except.h BitKeeper/deleted/.del-cxx_int.h: Delete: storage/bdb/dbinc/cxx_int.h BitKeeper/deleted/.del-db.in: Delete: storage/bdb/dbinc/db.in BitKeeper/deleted/.del-db_185.in: Delete: storage/bdb/dbinc/db_185.in BitKeeper/deleted/.del-db_am.h: Delete: storage/bdb/dbinc/db_am.h BitKeeper/deleted/.del-db_cxx.in: Delete: storage/bdb/dbinc/db_cxx.in BitKeeper/deleted/.del-db_dispatch.h: Delete: storage/bdb/dbinc/db_dispatch.h BitKeeper/deleted/.del-db_int.in: Delete: storage/bdb/dbinc/db_int.in BitKeeper/deleted/.del-db_join.h: Delete: storage/bdb/dbinc/db_join.h BitKeeper/deleted/.del-db_page.h: Delete: storage/bdb/dbinc/db_page.h BitKeeper/deleted/.del-db_server_int.h: Delete: storage/bdb/dbinc/db_server_int.h BitKeeper/deleted/.del-db_shash.h: Delete: storage/bdb/dbinc/db_shash.h BitKeeper/deleted/.del-db_swap.h: Delete: storage/bdb/dbinc/db_swap.h BitKeeper/deleted/.del-db_upgrade.h: Delete: storage/bdb/dbinc/db_upgrade.h BitKeeper/deleted/.del-db_verify.h: Delete: storage/bdb/dbinc/db_verify.h BitKeeper/deleted/.del-debug.h: Delete: storage/bdb/dbinc/debug.h BitKeeper/deleted/.del-fop.h: Delete: storage/bdb/dbinc/fop.h BitKeeper/deleted/.del-globals.h: Delete: storage/bdb/dbinc/globals.h BitKeeper/deleted/.del-hash.h: Delete: storage/bdb/dbinc/hash.h BitKeeper/deleted/.del-hmac.h: Delete: storage/bdb/dbinc/hmac.h BitKeeper/deleted/.del-lock.h: Delete: storage/bdb/dbinc/lock.h BitKeeper/deleted/.del-log.h: Delete: storage/bdb/dbinc/log.h BitKeeper/deleted/.del-mp.h: Delete: storage/bdb/dbinc/mp.h BitKeeper/deleted/.del-mutex.h: Delete: storage/bdb/dbinc/mutex.h BitKeeper/deleted/.del-mutex_int.h: Delete: storage/bdb/dbinc/mutex_int.h BitKeeper/deleted/.del-os.h: Delete: storage/bdb/dbinc/os.h BitKeeper/deleted/.del-qam.h: Delete: storage/bdb/dbinc/qam.h BitKeeper/deleted/.del-queue.h: Delete: storage/bdb/dbinc/queue.h BitKeeper/deleted/.del-region.h: Delete: storage/bdb/dbinc/region.h BitKeeper/deleted/.del-rep.h: Delete: storage/bdb/dbinc/rep.h BitKeeper/deleted/.del-shqueue.h: Delete: storage/bdb/dbinc/shqueue.h BitKeeper/deleted/.del-tcl_db.h: Delete: storage/bdb/dbinc/tcl_db.h BitKeeper/deleted/.del-txn.h: Delete: storage/bdb/dbinc/txn.h BitKeeper/deleted/.del-xa.h: Delete: storage/bdb/dbinc/xa.h BitKeeper/deleted/.del-.empty: Delete: storage/bdb/dbinc_auto/.empty BitKeeper/deleted/.del-Makefile.in~c0ea38ee72675ab4: Delete: storage/bdb/dist/Makefile.in BitKeeper/deleted/.del-RELEASE: Delete: storage/bdb/dist/RELEASE BitKeeper/deleted/.del-buildrel: Delete: storage/bdb/dist/buildrel BitKeeper/deleted/.del-config.guess: Delete: storage/bdb/dist/config.guess BitKeeper/deleted/.del-config.sub: Delete: storage/bdb/dist/config.sub BitKeeper/deleted/.del-configure.ac: Delete: storage/bdb/dist/configure.ac BitKeeper/deleted/.del-db.ecd.in: Delete: storage/bdb/dist/db.ecd.in BitKeeper/deleted/.del-db.spec.in: Delete: storage/bdb/dist/db.spec.in BitKeeper/deleted/.del-dbm.c: Delete: storage/bdb/dbm/dbm.c BitKeeper/deleted/.del-dbreg.c: Delete: storage/bdb/dbreg/dbreg.c BitKeeper/deleted/.del-dbreg.src: Delete: storage/bdb/dbreg/dbreg.src BitKeeper/deleted/.del-dbreg_rec.c: Delete: storage/bdb/dbreg/dbreg_rec.c BitKeeper/deleted/.del-dbreg_stat.c: Delete: storage/bdb/dbreg/dbreg_stat.c BitKeeper/deleted/.del-dbreg_util.c: Delete: storage/bdb/dbreg/dbreg_util.c BitKeeper/deleted/.del-gen_inc.awk: Delete: storage/bdb/dist/gen_inc.awk BitKeeper/deleted/.del-gen_rec.awk: Delete: storage/bdb/dist/gen_rec.awk BitKeeper/deleted/.del-gen_rpc.awk: Delete: storage/bdb/dist/gen_rpc.awk BitKeeper/deleted/.del-install-sh: Delete: storage/bdb/dist/install-sh BitKeeper/deleted/.del-ltmain.sh: Delete: storage/bdb/dist/ltmain.sh BitKeeper/deleted/.del-pubdef.in: Delete: storage/bdb/dist/pubdef.in BitKeeper/deleted/.del-s_all: Delete: storage/bdb/dist/s_all BitKeeper/deleted/.del-s_config: Delete: storage/bdb/dist/s_config BitKeeper/deleted/.del-s_crypto: Delete: storage/bdb/dist/s_crypto BitKeeper/deleted/.del-s_dir: Delete: storage/bdb/dist/s_dir BitKeeper/deleted/.del-s_include: Delete: storage/bdb/dist/s_include BitKeeper/deleted/.del-s_java_const: Delete: storage/bdb/dist/s_java_const BitKeeper/deleted/.del-s_java_stat: Delete: storage/bdb/dist/s_java_stat BitKeeper/deleted/.del-s_java_swig: Delete: storage/bdb/dist/s_java_swig BitKeeper/deleted/.del-s_javah: Delete: storage/bdb/dist/s_javah BitKeeper/deleted/.del-s_java: Delete: storage/bdb/dist/s_java BitKeeper/deleted/.del-s_je2db: Delete: storage/bdb/dist/s_je2db BitKeeper/deleted/.del-s_perm: Delete: storage/bdb/dist/s_perm BitKeeper/deleted/.del-s_readme: Delete: storage/bdb/dist/s_readme BitKeeper/deleted/.del-s_recover: Delete: storage/bdb/dist/s_recover BitKeeper/deleted/.del-s_rpc: Delete: storage/bdb/dist/s_rpc BitKeeper/deleted/.del-s_symlink: Delete: storage/bdb/dist/s_symlink BitKeeper/deleted/.del-config.ac: Delete: storage/bdb/dist/aclocal/config.ac BitKeeper/deleted/.del-cxx.ac: Delete: storage/bdb/dist/aclocal/cxx.ac BitKeeper/deleted/.del-gcc.ac: Delete: storage/bdb/dist/aclocal/gcc.ac BitKeeper/deleted/.del-libtool.ac: Delete: storage/bdb/dist/aclocal/libtool.ac BitKeeper/deleted/.del-mutex.ac: Delete: storage/bdb/dist/aclocal/mutex.ac BitKeeper/deleted/.del-options.ac: Delete: storage/bdb/dist/aclocal/options.ac BitKeeper/deleted/.del-programs.ac: Delete: storage/bdb/dist/aclocal/programs.ac BitKeeper/deleted/.del-s_tags: Delete: storage/bdb/dist/s_tags BitKeeper/deleted/.del-s_test: Delete: storage/bdb/dist/s_test BitKeeper/deleted/.del-s_vxworks: Delete: storage/bdb/dist/s_vxworks BitKeeper/deleted/.del-s_win32_dsp: Delete: storage/bdb/dist/s_win32_dsp BitKeeper/deleted/.del-s_win32: Delete: storage/bdb/dist/s_win32 BitKeeper/deleted/.del-s_winmsi: Delete: storage/bdb/dist/s_winmsi BitKeeper/deleted/.del-srcfiles.in: Delete: storage/bdb/dist/srcfiles.in BitKeeper/deleted/.del-vx_buildcd: Delete: storage/bdb/dist/vx_buildcd BitKeeper/deleted/.del-vx_config.in: Delete: storage/bdb/dist/vx_config.in BitKeeper/deleted/.del-win_config.in: Delete: storage/bdb/dist/win_config.in BitKeeper/deleted/.del-win_db.in: Delete: storage/bdb/dist/win_db.in BitKeeper/deleted/.del-win_exports.in: Delete: storage/bdb/dist/win_exports.in BitKeeper/deleted/.del-ac_check_class.ac: Delete: storage/bdb/dist/aclocal_java/ac_check_class.ac BitKeeper/deleted/.del-ac_check_classpath.ac: Delete: storage/bdb/dist/aclocal_java/ac_check_classpath.ac BitKeeper/deleted/.del-ac_check_junit.ac: Delete: storage/bdb/dist/aclocal_java/ac_check_junit.ac BitKeeper/deleted/.del-ac_check_rqrd_class.ac: Delete: storage/bdb/dist/aclocal_java/ac_check_rqrd_class.ac BitKeeper/deleted/.del-ac_java_options.ac: Delete: storage/bdb/dist/aclocal_java/ac_java_options.ac BitKeeper/deleted/.del-ac_jni_include_dirs.ac: Delete: storage/bdb/dist/aclocal_java/ac_jni_include_dirs.ac BitKeeper/deleted/.del-ac_prog_jar.ac: Delete: storage/bdb/dist/aclocal_java/ac_prog_jar.ac BitKeeper/deleted/.del-ac_prog_java.ac: Delete: storage/bdb/dist/aclocal_java/ac_prog_java.ac BitKeeper/deleted/.del-ac_prog_java_works.ac: Delete: storage/bdb/dist/aclocal_java/ac_prog_java_works.ac BitKeeper/deleted/.del-ac_prog_javac.ac: Delete: storage/bdb/dist/aclocal_java/ac_prog_javac.ac BitKeeper/deleted/.del-ac_prog_javac_works.ac: Delete: storage/bdb/dist/aclocal_java/ac_prog_javac_works.ac BitKeeper/deleted/.del-ac_prog_javadoc.ac: Delete: storage/bdb/dist/aclocal_java/ac_prog_javadoc.ac BitKeeper/deleted/.del-ac_prog_javah.ac: Delete: storage/bdb/dist/aclocal_java/ac_prog_javah.ac BitKeeper/deleted/.del-rpc.ac: Delete: storage/bdb/dist/aclocal/rpc.ac BitKeeper/deleted/.del-sequence.ac: Delete: storage/bdb/dist/aclocal/sequence.ac BitKeeper/deleted/.del-sosuffix.ac: Delete: storage/bdb/dist/aclocal/sosuffix.ac BitKeeper/deleted/.del-tcl.ac: Delete: storage/bdb/dist/aclocal/tcl.ac BitKeeper/deleted/.del-types.ac: Delete: storage/bdb/dist/aclocal/types.ac BitKeeper/deleted/.del-BerkeleyDB.wpj: Delete: storage/bdb/dist/vx_2.0/BerkeleyDB.wpj BitKeeper/deleted/.del-BerkeleyDB.wpj~320150f7956cd770: Delete: storage/bdb/dist/vx_2.2/BerkeleyDB.wpj BitKeeper/deleted/.del-BerkeleyDBsmall.wpj: Delete: storage/bdb/dist/vx_2.0/BerkeleyDBsmall.wpj BitKeeper/deleted/.del-BerkeleyDBsmall.wpj~4c4d7f40dbf1664d: Delete: storage/bdb/dist/vx_2.2/BerkeleyDBsmall.wpj BitKeeper/deleted/.del-Makefile.custom: Delete: storage/bdb/dist/vx_3.1/Makefile.custom BitKeeper/deleted/.del-ac_try_compile_java.ac: Delete: storage/bdb/dist/aclocal_java/ac_try_compile_java.ac BitKeeper/deleted/.del-ac_try_run_javac.ac: Delete: storage/bdb/dist/aclocal_java/ac_try_run_javac.ac BitKeeper/deleted/.del-cdf.1: Delete: storage/bdb/dist/vx_3.1/cdf.1 BitKeeper/deleted/.del-cdf.2: Delete: storage/bdb/dist/vx_3.1/cdf.2 BitKeeper/deleted/.del-cdf.3: Delete: storage/bdb/dist/vx_3.1/cdf.3 BitKeeper/deleted/.del-component.cdf: Delete: storage/bdb/dist/vx_3.1/component.cdf BitKeeper/deleted/.del-component.wpj: Delete: storage/bdb/dist/vx_3.1/component.wpj BitKeeper/deleted/.del-rec_ctemp: Delete: storage/bdb/dist/template/rec_ctemp BitKeeper/deleted/.del-rec_rep: Delete: storage/bdb/dist/template/rec_rep BitKeeper/deleted/.del-wpj.1: Delete: storage/bdb/dist/vx_3.1/wpj.1 BitKeeper/deleted/.del-wpj.2: Delete: storage/bdb/dist/vx_3.1/wpj.2 BitKeeper/deleted/.del-wpj.in: Delete: storage/bdb/dist/vx_2.0/wpj.in BitKeeper/deleted/.del-wpj.in~cd8fd754cedb37b2: Delete: storage/bdb/dist/vx_2.2/wpj.in BitKeeper/deleted/.del-CONFIG.in: Delete: storage/bdb/dist/vx_setup/CONFIG.in BitKeeper/deleted/.del-LICENSE.TXT: Delete: storage/bdb/dist/vx_setup/LICENSE.TXT BitKeeper/deleted/.del-MESSAGES.TCL: Delete: storage/bdb/dist/vx_setup/MESSAGES.TCL BitKeeper/deleted/.del-README.in: Delete: storage/bdb/dist/vx_setup/README.in BitKeeper/deleted/.del-SETUP.BMP: Delete: storage/bdb/dist/vx_setup/SETUP.BMP BitKeeper/deleted/.del-dbcorewix.in: Delete: storage/bdb/dist/winmsi/dbcorewix.in BitKeeper/deleted/.del-dbvarsbat.in: Delete: storage/bdb/dist/winmsi/dbvarsbat.in BitKeeper/deleted/.del-dbwix.m4: Delete: storage/bdb/dist/winmsi/dbwix.m4 BitKeeper/deleted/.del-environment.in: Delete: storage/bdb/dist/winmsi/environment.in BitKeeper/deleted/.del-features.in: Delete: storage/bdb/dist/winmsi/features.in BitKeeper/deleted/.del-files.in: Delete: storage/bdb/dist/winmsi/files.in BitKeeper/deleted/.del-links.in: Delete: storage/bdb/dist/winmsi/links.in BitKeeper/deleted/.del-s_winmsi.fcn: Delete: storage/bdb/dist/winmsi/s_winmsi.fcn BitKeeper/deleted/.del-vx_allfile.in: Delete: storage/bdb/dist/vx_setup/vx_allfile.in BitKeeper/deleted/.del-vx_demofile.in: Delete: storage/bdb/dist/vx_setup/vx_demofile.in BitKeeper/deleted/.del-vx_setup.in: Delete: storage/bdb/dist/vx_setup/vx_setup.in BitKeeper/deleted/.del-wpj.3: Delete: storage/bdb/dist/vx_3.1/wpj.3 BitKeeper/deleted/.del-wpj.4: Delete: storage/bdb/dist/vx_3.1/wpj.4 BitKeeper/deleted/.del-wpj.5: Delete: storage/bdb/dist/vx_3.1/wpj.5 BitKeeper/deleted/.del-caticon.ibd: Delete: storage/bdb/dist/winmsi/images/caticon.ibd BitKeeper/deleted/.del-db_salloc.c: Delete: storage/bdb/env/db_salloc.c BitKeeper/deleted/.del-db_shash.c: Delete: storage/bdb/env/db_shash.c BitKeeper/deleted/.del-env_failchk.c: Delete: storage/bdb/env/env_failchk.c BitKeeper/deleted/.del-env_file.c: Delete: storage/bdb/env/env_file.c BitKeeper/deleted/.del-env_method.c.b: Delete: storage/bdb/env/env_method.c.b BitKeeper/deleted/.del-env_method.c: Delete: storage/bdb/env/env_method.c BitKeeper/deleted/.del-env_open.c: Delete: storage/bdb/env/env_open.c BitKeeper/deleted/.del-env_recover.c: Delete: storage/bdb/env/env_recover.c BitKeeper/deleted/.del-env_region.c: Delete: storage/bdb/env/env_region.c BitKeeper/deleted/.del-env_register.c: Delete: storage/bdb/env/env_register.c BitKeeper/deleted/.del-env_stat.c: Delete: storage/bdb/env/env_stat.c BitKeeper/deleted/.del-fileops.src: Delete: storage/bdb/fileops/fileops.src BitKeeper/deleted/.del-foldernew.ibd: Delete: storage/bdb/dist/winmsi/images/foldernew.ibd BitKeeper/deleted/.del-folderup.ibd: Delete: storage/bdb/dist/winmsi/images/folderup.ibd BitKeeper/deleted/.del-sleepycat.jpg: Delete: storage/bdb/dist/winmsi/images/sleepycat.jpg BitKeeper/deleted/.del-topstripe.ibd: Delete: storage/bdb/dist/winmsi/images/topstripe.ibd BitKeeper/deleted/.del-webicon.ico: Delete: storage/bdb/dist/winmsi/images/webicon.ico BitKeeper/deleted/.del-winbuild.bat: Delete: storage/bdb/dist/winmsi/winbuild.bat BitKeeper/deleted/.del-fop_basic.c: Delete: storage/bdb/fileops/fop_basic.c BitKeeper/deleted/.del-fop_rec.c: Delete: storage/bdb/fileops/fop_rec.c BitKeeper/deleted/.del-fop_util.c: Delete: storage/bdb/fileops/fop_util.c BitKeeper/deleted/.del-hash.c: Delete: storage/bdb/hash/hash.c BitKeeper/deleted/.del-hash.src: Delete: storage/bdb/hash/hash.src BitKeeper/deleted/.del-hash_conv.c: Delete: storage/bdb/hash/hash_conv.c BitKeeper/deleted/.del-hash_dup.c: Delete: storage/bdb/hash/hash_dup.c BitKeeper/deleted/.del-hash_func.c: Delete: storage/bdb/hash/hash_func.c BitKeeper/deleted/.del-hash_meta.c: Delete: storage/bdb/hash/hash_meta.c BitKeeper/deleted/.del-hash_method.c: Delete: storage/bdb/hash/hash_method.c BitKeeper/deleted/.del-hash_open.c: Delete: storage/bdb/hash/hash_open.c BitKeeper/deleted/.del-hash_page.c: Delete: storage/bdb/hash/hash_page.c BitKeeper/deleted/.del-hash_rec.c: Delete: storage/bdb/hash/hash_rec.c BitKeeper/deleted/.del-hash_reclaim.c: Delete: storage/bdb/hash/hash_reclaim.c BitKeeper/deleted/.del-hash_stat.c: Delete: storage/bdb/hash/hash_stat.c BitKeeper/deleted/.del-hash_stub.c: Delete: storage/bdb/hash/hash_stub.c BitKeeper/deleted/.del-hash_upgrade.c: Delete: storage/bdb/hash/hash_upgrade.c BitKeeper/deleted/.del-hash_verify.c: Delete: storage/bdb/hash/hash_verify.c BitKeeper/deleted/.del-Design: Delete: storage/bdb/lock/Design BitKeeper/deleted/.del-hmac.c: Delete: storage/bdb/hmac/hmac.c BitKeeper/deleted/.del-hsearch.c: Delete: storage/bdb/hsearch/hsearch.c BitKeeper/deleted/.del-lock.c: Delete: storage/bdb/lock/lock.c BitKeeper/deleted/.del-lock_deadlock.c: Delete: storage/bdb/lock/lock_deadlock.c BitKeeper/deleted/.del-lock_failchk.c: Delete: storage/bdb/lock/lock_failchk.c BitKeeper/deleted/.del-lock_id.c: Delete: storage/bdb/lock/lock_id.c BitKeeper/deleted/.del-lock_list.c: Delete: storage/bdb/lock/lock_list.c BitKeeper/deleted/.del-lock_method.c: Delete: storage/bdb/lock/lock_method.c BitKeeper/deleted/.del-lock_region.c: Delete: storage/bdb/lock/lock_region.c BitKeeper/deleted/.del-lock_stat.c: Delete: storage/bdb/lock/lock_stat.c BitKeeper/deleted/.del-lock_timer.c: Delete: storage/bdb/lock/lock_timer.c BitKeeper/deleted/.del-lock_util.c: Delete: storage/bdb/lock/lock_util.c BitKeeper/deleted/.del-log.c: Delete: storage/bdb/log/log.c BitKeeper/deleted/.del-log_archive.c: Delete: storage/bdb/log/log_archive.c BitKeeper/deleted/.del-log_compare.c: Delete: storage/bdb/log/log_compare.c BitKeeper/deleted/.del-log_debug.c: Delete: storage/bdb/log/log_debug.c BitKeeper/deleted/.del-log_get.c: Delete: storage/bdb/log/log_get.c BitKeeper/deleted/.del-sha1.c: Delete: storage/bdb/hmac/sha1.c BitKeeper/deleted/.del-README~cce8f408842aa70c: Delete: storage/bdb/mutex/README BitKeeper/deleted/.del-log_method.c: Delete: storage/bdb/log/log_method.c BitKeeper/deleted/.del-log_put.c: Delete: storage/bdb/log/log_put.c BitKeeper/deleted/.del-log_stat.c: Delete: storage/bdb/log/log_stat.c BitKeeper/deleted/.del-mp_alloc.c: Delete: storage/bdb/mp/mp_alloc.c BitKeeper/deleted/.del-mp_bh.c: Delete: storage/bdb/mp/mp_bh.c BitKeeper/deleted/.del-mp_fget.c: Delete: storage/bdb/mp/mp_fget.c BitKeeper/deleted/.del-mp_fmethod.c: Delete: storage/bdb/mp/mp_fmethod.c BitKeeper/deleted/.del-mp_fopen.c: Delete: storage/bdb/mp/mp_fopen.c BitKeeper/deleted/.del-mp_fput.c: Delete: storage/bdb/mp/mp_fput.c BitKeeper/deleted/.del-mp_fset.c: Delete: storage/bdb/mp/mp_fset.c BitKeeper/deleted/.del-mp_method.c: Delete: storage/bdb/mp/mp_method.c BitKeeper/deleted/.del-mp_region.c: Delete: storage/bdb/mp/mp_region.c BitKeeper/deleted/.del-mp_register.c: Delete: storage/bdb/mp/mp_register.c BitKeeper/deleted/.del-mp_stat.c: Delete: storage/bdb/mp/mp_stat.c BitKeeper/deleted/.del-mp_sync.c: Delete: storage/bdb/mp/mp_sync.c BitKeeper/deleted/.del-mp_trickle.c: Delete: storage/bdb/mp/mp_trickle.c BitKeeper/deleted/.del-mut_alloc.c: Delete: storage/bdb/mutex/mut_alloc.c BitKeeper/deleted/.del-mut_fcntl.c: Delete: storage/bdb/mutex/mut_fcntl.c BitKeeper/deleted/.del-mut_method.c: Delete: storage/bdb/mutex/mut_method.c BitKeeper/deleted/.del-mut_pthread.c: Delete: storage/bdb/mutex/mut_pthread.c BitKeeper/deleted/.del-mut_region.c: Delete: storage/bdb/mutex/mut_region.c BitKeeper/deleted/.del-mut_stat.c: Delete: storage/bdb/mutex/mut_stat.c BitKeeper/deleted/.del-mut_tas.c: Delete: storage/bdb/mutex/mut_tas.c BitKeeper/deleted/.del-mut_win32.c: Delete: storage/bdb/mutex/mut_win32.c BitKeeper/deleted/.del-os_abs.c: Delete: storage/bdb/os/os_abs.c BitKeeper/deleted/.del-os_alloc.c: Delete: storage/bdb/os/os_alloc.c BitKeeper/deleted/.del-os_clock.c: Delete: storage/bdb/os/os_clock.c BitKeeper/deleted/.del-os_config.c: Delete: storage/bdb/os/os_config.c BitKeeper/deleted/.del-os_dir.c: Delete: storage/bdb/os/os_dir.c BitKeeper/deleted/.del-os_errno.c: Delete: storage/bdb/os/os_errno.c BitKeeper/deleted/.del-os_fid.c: Delete: storage/bdb/os/os_fid.c BitKeeper/deleted/.del-os_flock.c: Delete: storage/bdb/os/os_flock.c BitKeeper/deleted/.del-tm.c: Delete: storage/bdb/mutex/tm.c BitKeeper/deleted/.del-uts4_cc.s: Delete: storage/bdb/mutex/uts4_cc.s BitKeeper/deleted/.del-os_fsync.c: Delete: storage/bdb/os/os_fsync.c BitKeeper/deleted/.del-os_handle.c: Delete: storage/bdb/os/os_handle.c BitKeeper/deleted/.del-os_id.c: Delete: storage/bdb/os/os_id.c BitKeeper/deleted/.del-os_map.c: Delete: storage/bdb/os/os_map.c BitKeeper/deleted/.del-os_method.c: Delete: storage/bdb/os/os_method.c BitKeeper/deleted/.del-os_mkdir.c: Delete: storage/bdb/os/os_mkdir.c BitKeeper/deleted/.del-os_oflags.c: Delete: storage/bdb/os/os_oflags.c BitKeeper/deleted/.del-os_open.c: Delete: storage/bdb/os/os_open.c BitKeeper/deleted/.del-os_region.c: Delete: storage/bdb/os/os_region.c BitKeeper/deleted/.del-os_rename.c: Delete: storage/bdb/os/os_rename.c BitKeeper/deleted/.del-os_root.c: Delete: storage/bdb/os/os_root.c BitKeeper/deleted/.del-os_rpath.c: Delete: storage/bdb/os/os_rpath.c BitKeeper/deleted/.del-os_rw.c: Delete: storage/bdb/os/os_rw.c BitKeeper/deleted/.del-os_seek.c: Delete: storage/bdb/os/os_seek.c BitKeeper/deleted/.del-os_sleep.c: Delete: storage/bdb/os/os_sleep.c BitKeeper/deleted/.del-os_spin.c: Delete: storage/bdb/os/os_spin.c BitKeeper/deleted/.del-os_stat.c: Delete: storage/bdb/os/os_stat.c BitKeeper/deleted/.del-os_tmpdir.c: Delete: storage/bdb/os/os_tmpdir.c BitKeeper/deleted/.del-os_truncate.c: Delete: storage/bdb/os/os_truncate.c BitKeeper/deleted/.del-os_abs.c~ad5b599d8bf6549f: Delete: storage/bdb/os_win32/os_abs.c BitKeeper/deleted/.del-os_clock.c~2add52eff231a274: Delete: storage/bdb/os_win32/os_clock.c BitKeeper/deleted/.del-os_config.c~53e193a5e5e97cfd: Delete: storage/bdb/os_win32/os_config.c BitKeeper/deleted/.del-os_dir.c~99fbc266717a871a: Delete: storage/bdb/os_win32/os_dir.c BitKeeper/deleted/.del-os_errno.c~44204df07323cffb: Delete: storage/bdb/os_win32/os_errno.c BitKeeper/deleted/.del-os_fid.c~8f922f06a0fa5a0: Delete: storage/bdb/os_win32/os_fid.c BitKeeper/deleted/.del-os_flock.c~cc35099adbda7408: Delete: storage/bdb/os_win32/os_flock.c BitKeeper/deleted/.del-os_fsync.c~eebb7e558dacef1c: Delete: storage/bdb/os_win32/os_fsync.c BitKeeper/deleted/.del-os_handle.c~281e6b79ac5147f1: Delete: storage/bdb/os_win32/os_handle.c BitKeeper/deleted/.del-os_map.c~e8726a67b9abaa30: Delete: storage/bdb/os_win32/os_map.c BitKeeper/deleted/.del-os_open.c~996e9987793f8dbc: Delete: storage/bdb/os_win32/os_open.c BitKeeper/deleted/.del-os_rename.c~1c318d0b60c977bd: Delete: storage/bdb/os_win32/os_rename.c BitKeeper/deleted/.del-os_rw.c~7ec61bd993fe999f: Delete: storage/bdb/os_win32/os_rw.c BitKeeper/deleted/.del-os_seek.c~2b5bef3cccfa60c: Delete: storage/bdb/os_win32/os_seek.c BitKeeper/deleted/.del-os_sleep.c~d0512f5626e7c40b: Delete: storage/bdb/os_win32/os_sleep.c BitKeeper/deleted/.del-os_spin.c~e2abf23edb5bac39: Delete: storage/bdb/os_win32/os_spin.c BitKeeper/deleted/.del-os_stat.c~b7aea1c8fe0bc4c4: Delete: storage/bdb/os_win32/os_stat.c BitKeeper/deleted/.del-os_truncate.c~9761b239f54b2d96: Delete: storage/bdb/os_win32/os_truncate.c BitKeeper/deleted/.del-os_unlink.c: Delete: storage/bdb/os/os_unlink.c BitKeeper/deleted/.del-os_type.c: Delete: storage/bdb/os_win32/os_type.c BitKeeper/deleted/.del-os_unlink.c~6dee667279d01609: Delete: storage/bdb/os_win32/os_unlink.c BitKeeper/deleted/.del-qam.c: Delete: storage/bdb/qam/qam.c BitKeeper/deleted/.del-qam.src: Delete: storage/bdb/qam/qam.src BitKeeper/deleted/.del-qam_conv.c: Delete: storage/bdb/qam/qam_conv.c BitKeeper/deleted/.del-qam_files.c: Delete: storage/bdb/qam/qam_files.c BitKeeper/deleted/.del-qam_method.c: Delete: storage/bdb/qam/qam_method.c BitKeeper/deleted/.del-qam_open.c: Delete: storage/bdb/qam/qam_open.c BitKeeper/deleted/.del-qam_rec.c: Delete: storage/bdb/qam/qam_rec.c BitKeeper/deleted/.del-qam_stat.c: Delete: storage/bdb/qam/qam_stat.c BitKeeper/deleted/.del-qam_stub.c: Delete: storage/bdb/qam/qam_stub.c BitKeeper/deleted/.del-qam_upgrade.c: Delete: storage/bdb/qam/qam_upgrade.c BitKeeper/deleted/.del-qam_verify.c: Delete: storage/bdb/qam/qam_verify.c BitKeeper/deleted/.del-rep.src: Delete: storage/bdb/rep/rep.src BitKeeper/deleted/.del-rep_backup.c: Delete: storage/bdb/rep/rep_backup.c BitKeeper/deleted/.del-rep_elect.c: Delete: storage/bdb/rep/rep_elect.c BitKeeper/deleted/.del-rep_log.c: Delete: storage/bdb/rep/rep_log.c BitKeeper/deleted/.del-rep_method.c: Delete: storage/bdb/rep/rep_method.c BitKeeper/deleted/.del-rep_record.c: Delete: storage/bdb/rep/rep_record.c BitKeeper/deleted/.del-rep_region.c: Delete: storage/bdb/rep/rep_region.c BitKeeper/deleted/.del-rep_stat.c: Delete: storage/bdb/rep/rep_stat.c BitKeeper/deleted/.del-rep_stub.c: Delete: storage/bdb/rep/rep_stub.c BitKeeper/deleted/.del-rep_util.c: Delete: storage/bdb/rep/rep_util.c BitKeeper/deleted/.del-rep_verify.c: Delete: storage/bdb/rep/rep_verify.c BitKeeper/deleted/.del-seq_stat.c: Delete: storage/bdb/sequence/seq_stat.c BitKeeper/deleted/.del-sequence.c: Delete: storage/bdb/sequence/sequence.c BitKeeper/deleted/.del-txn.c: Delete: storage/bdb/txn/txn.c BitKeeper/deleted/.del-txn.src: Delete: storage/bdb/txn/txn.src BitKeeper/deleted/.del-txn_chkpt.c: Delete: storage/bdb/txn/txn_chkpt.c BitKeeper/deleted/.del-txn_failchk.c: Delete: storage/bdb/txn/txn_failchk.c BitKeeper/deleted/.del-txn_method.c: Delete: storage/bdb/txn/txn_method.c BitKeeper/deleted/.del-txn_rec.c: Delete: storage/bdb/txn/txn_rec.c BitKeeper/deleted/.del-txn_recover.c: Delete: storage/bdb/txn/txn_recover.c BitKeeper/deleted/.del-txn_region.c: Delete: storage/bdb/txn/txn_region.c BitKeeper/deleted/.del-txn_stat.c: Delete: storage/bdb/txn/txn_stat.c BitKeeper/deleted/.del-txn_util.c: Delete: storage/bdb/txn/txn_util.c BitKeeper/deleted/.del-xa.c: Delete: storage/bdb/xa/xa.c BitKeeper/deleted/.del-xa_db.c: Delete: storage/bdb/xa/xa_db.c BitKeeper/deleted/.del-xa_map.c: Delete: storage/bdb/xa/xa_map.c sql/field.cc: Antony's patch sql/field.h: Antony's patch
1603 lines
61 KiB
C++
1603 lines
61 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 */
|
|
|
|
|
|
/*
|
|
Because of the function new_field() all field classes that have static
|
|
variables must declare the size_of() member function.
|
|
*/
|
|
|
|
#ifdef USE_PRAGMA_INTERFACE
|
|
#pragma interface /* gcc class implementation */
|
|
#endif
|
|
|
|
#define NOT_FIXED_DEC 31
|
|
#define DATETIME_DEC 6
|
|
|
|
class Send_field;
|
|
class Protocol;
|
|
class create_field;
|
|
struct st_cache_field;
|
|
void field_conv(Field *to,Field *from);
|
|
|
|
inline uint get_enum_pack_length(int elements)
|
|
{
|
|
return elements < 256 ? 1 : 2;
|
|
}
|
|
|
|
inline uint get_set_pack_length(int elements)
|
|
{
|
|
uint len= (elements + 7) / 8;
|
|
return len > 4 ? 8 : len;
|
|
}
|
|
|
|
class Field
|
|
{
|
|
Field(const Item &); /* Prevent use of these */
|
|
void operator=(Field &);
|
|
public:
|
|
static void *operator new(size_t size) {return (void*) sql_alloc((uint) size); }
|
|
static void operator delete(void *ptr_arg, size_t size) { TRASH(ptr_arg, size); }
|
|
|
|
char *ptr; // Position to field in record
|
|
uchar *null_ptr; // Byte where null_bit is
|
|
/*
|
|
Note that you can use table->in_use as replacement for current_thd member
|
|
only inside of val_*() and store() members (e.g. you can't use it in cons)
|
|
*/
|
|
struct st_table *table; // Pointer for table
|
|
struct st_table *orig_table; // Pointer to original table
|
|
const char **table_name, *field_name;
|
|
LEX_STRING comment;
|
|
/* Field is part of the following keys */
|
|
key_map key_start, part_of_key, part_of_key_not_clustered;
|
|
key_map part_of_sortkey;
|
|
/*
|
|
We use three additional unireg types for TIMESTAMP to overcome limitation
|
|
of current binary format of .frm file. We'd like to be able to support
|
|
NOW() as default and on update value for such fields but unable to hold
|
|
this info anywhere except unireg_check field. This issue will be resolved
|
|
in more clean way with transition to new text based .frm format.
|
|
See also comment for Field_timestamp::Field_timestamp().
|
|
*/
|
|
enum utype { NONE,DATE,SHIELD,NOEMPTY,CASEUP,PNR,BGNR,PGNR,YES,NO,REL,
|
|
CHECK,EMPTY,UNKNOWN_FIELD,CASEDN,NEXT_NUMBER,INTERVAL_FIELD,
|
|
BIT_FIELD, TIMESTAMP_OLD_FIELD, CAPITALIZE, BLOB_FIELD,
|
|
TIMESTAMP_DN_FIELD, TIMESTAMP_UN_FIELD, TIMESTAMP_DNUN_FIELD};
|
|
enum geometry_type
|
|
{
|
|
GEOM_GEOMETRY = 0, GEOM_POINT = 1, GEOM_LINESTRING = 2, GEOM_POLYGON = 3,
|
|
GEOM_MULTIPOINT = 4, GEOM_MULTILINESTRING = 5, GEOM_MULTIPOLYGON = 6,
|
|
GEOM_GEOMETRYCOLLECTION = 7
|
|
};
|
|
enum imagetype { itRAW, itMBR};
|
|
|
|
utype unireg_check;
|
|
uint32 field_length; // Length of field
|
|
uint32 flags;
|
|
uint16 field_index; // field number in fields array
|
|
uchar null_bit; // Bit used to test null bit
|
|
|
|
Field(char *ptr_arg,uint32 length_arg,uchar *null_ptr_arg,uchar null_bit_arg,
|
|
utype unireg_check_arg, const char *field_name_arg);
|
|
virtual ~Field() {}
|
|
/* Store functions returns 1 on overflow and -1 on fatal error */
|
|
virtual int store(const char *to,uint length,CHARSET_INFO *cs)=0;
|
|
virtual int store(double nr)=0;
|
|
virtual int store(longlong nr, bool unsigned_val)=0;
|
|
virtual int store_decimal(const my_decimal *d)=0;
|
|
virtual int store_time(TIME *ltime, timestamp_type t_type);
|
|
virtual double val_real(void)=0;
|
|
virtual longlong val_int(void)=0;
|
|
virtual my_decimal *val_decimal(my_decimal *);
|
|
inline String *val_str(String *str) { return val_str(str, str); }
|
|
/*
|
|
val_str(buf1, buf2) gets two buffers and should use them as follows:
|
|
if it needs a temp buffer to convert result to string - use buf1
|
|
example Field_tiny::val_str()
|
|
if the value exists as a string already - use buf2
|
|
example Field_string::val_str()
|
|
consequently, buf2 may be created as 'String buf;' - no memory
|
|
will be allocated for it. buf1 will be allocated to hold a
|
|
value if it's too small. Using allocated buffer for buf2 may result in
|
|
an unnecessary free (and later, may be an alloc).
|
|
This trickery is used to decrease a number of malloc calls.
|
|
*/
|
|
virtual String *val_str(String*,String *)=0;
|
|
String *val_int_as_str(String *val_buffer, my_bool unsigned_flag);
|
|
/*
|
|
str_needs_quotes() returns TRUE if the value returned by val_str() needs
|
|
to be quoted when used in constructing an SQL query.
|
|
*/
|
|
virtual bool str_needs_quotes() { return FALSE; }
|
|
virtual Item_result result_type () const=0;
|
|
virtual Item_result cmp_type () const { return result_type(); }
|
|
virtual Item_result cast_to_int_type () const { return result_type(); }
|
|
static bool type_can_have_key_part(enum_field_types);
|
|
static enum_field_types field_type_merge(enum_field_types, enum_field_types);
|
|
static Item_result result_merge_type(enum_field_types);
|
|
virtual bool eq(Field *field)
|
|
{
|
|
return (ptr == field->ptr && null_ptr == field->null_ptr &&
|
|
null_bit == field->null_bit);
|
|
}
|
|
virtual bool eq_def(Field *field);
|
|
|
|
/*
|
|
pack_length() returns size (in bytes) used to store field data in memory
|
|
(i.e. it returns the maximum size of the field in a row of the table,
|
|
which is located in RAM).
|
|
*/
|
|
virtual uint32 pack_length() const { return (uint32) field_length; }
|
|
|
|
/*
|
|
pack_length_in_rec() returns size (in bytes) used to store field data on
|
|
storage (i.e. it returns the maximal size of the field in a row of the
|
|
table, which is located on disk).
|
|
*/
|
|
virtual uint32 pack_length_in_rec() const { return pack_length(); }
|
|
|
|
/*
|
|
data_length() return the "real size" of the data in memory.
|
|
*/
|
|
virtual uint32 data_length(const char *from) { return pack_length(); }
|
|
virtual uint32 sort_length() const { return pack_length(); }
|
|
virtual void reset(void) { bzero(ptr,pack_length()); }
|
|
virtual void reset_fields() {}
|
|
virtual void set_default()
|
|
{
|
|
my_ptrdiff_t offset = (my_ptrdiff_t) (table->s->default_values -
|
|
table->record[0]);
|
|
memcpy(ptr, ptr + offset, pack_length());
|
|
if (null_ptr)
|
|
*null_ptr= ((*null_ptr & (uchar) ~null_bit) |
|
|
null_ptr[offset] & null_bit);
|
|
}
|
|
virtual bool binary() const { return 1; }
|
|
virtual bool zero_pack() const { return 1; }
|
|
virtual enum ha_base_keytype key_type() const { return HA_KEYTYPE_BINARY; }
|
|
virtual uint32 key_length() const { return pack_length(); }
|
|
virtual enum_field_types type() const =0;
|
|
virtual enum_field_types real_type() const { return type(); }
|
|
inline int cmp(const char *str) { return cmp(ptr,str); }
|
|
virtual int cmp_max(const char *a, const char *b, uint max_len)
|
|
{ return cmp(a, b); }
|
|
virtual int cmp(const char *,const char *)=0;
|
|
virtual int cmp_binary(const char *a,const char *b, uint32 max_length=~0L)
|
|
{ return memcmp(a,b,pack_length()); }
|
|
virtual int cmp_offset(uint row_offset)
|
|
{ return cmp(ptr,ptr+row_offset); }
|
|
virtual int cmp_binary_offset(uint row_offset)
|
|
{ return cmp_binary(ptr, ptr+row_offset); };
|
|
virtual int key_cmp(const byte *a,const byte *b)
|
|
{ return cmp((char*) a,(char*) b); }
|
|
virtual int key_cmp(const byte *str, uint length)
|
|
{ return cmp(ptr,(char*) str); }
|
|
virtual uint decimals() const { return 0; }
|
|
/*
|
|
Caller beware: sql_type can change str.Ptr, so check
|
|
ptr() to see if it changed if you are using your own buffer
|
|
in str and restore it with set() if needed
|
|
*/
|
|
virtual void sql_type(String &str) const =0;
|
|
virtual uint size_of() const =0; // For new field
|
|
inline bool is_null(uint row_offset=0)
|
|
{ return null_ptr ? (null_ptr[row_offset] & null_bit ? 1 : 0) : table->null_row; }
|
|
inline bool is_real_null(uint row_offset=0)
|
|
{ return null_ptr ? (null_ptr[row_offset] & null_bit ? 1 : 0) : 0; }
|
|
inline bool is_null_in_record(const uchar *record)
|
|
{
|
|
if (!null_ptr)
|
|
return 0;
|
|
return test(record[(uint) (null_ptr - (uchar*) table->record[0])] &
|
|
null_bit);
|
|
}
|
|
inline bool is_null_in_record_with_offset(my_ptrdiff_t offset)
|
|
{
|
|
if (!null_ptr)
|
|
return 0;
|
|
return test(null_ptr[offset] & null_bit);
|
|
}
|
|
inline void set_null(int row_offset=0)
|
|
{ if (null_ptr) null_ptr[row_offset]|= null_bit; }
|
|
inline void set_notnull(int row_offset=0)
|
|
{ if (null_ptr) null_ptr[row_offset]&= (uchar) ~null_bit; }
|
|
inline bool maybe_null(void) { return null_ptr != 0 || table->maybe_null; }
|
|
inline bool real_maybe_null(void) { return null_ptr != 0; }
|
|
virtual void make_field(Send_field *);
|
|
virtual void sort_string(char *buff,uint length)=0;
|
|
virtual bool optimize_range(uint idx, uint part);
|
|
/*
|
|
This should be true for fields which, when compared with constant
|
|
items, can be casted to longlong. In this case we will at 'fix_fields'
|
|
stage cast the constant items to longlongs and at the execution stage
|
|
use field->val_int() for comparison. Used to optimize clauses like
|
|
'a_column BETWEEN date_const, date_const'.
|
|
*/
|
|
virtual bool can_be_compared_as_longlong() const { return FALSE; }
|
|
virtual void free() {}
|
|
virtual Field *new_field(MEM_ROOT *root, struct st_table *new_table,
|
|
bool keep_type);
|
|
virtual Field *new_key_field(MEM_ROOT *root, struct st_table *new_table,
|
|
char *new_ptr, uchar *new_null_ptr,
|
|
uint new_null_bit);
|
|
Field *clone(MEM_ROOT *mem_root, struct st_table *new_table);
|
|
inline void move_field(char *ptr_arg,uchar *null_ptr_arg,uchar null_bit_arg)
|
|
{
|
|
ptr=ptr_arg; null_ptr=null_ptr_arg; null_bit=null_bit_arg;
|
|
}
|
|
inline void move_field(char *ptr_arg) { ptr=ptr_arg; }
|
|
virtual void move_field_offset(my_ptrdiff_t ptr_diff)
|
|
{
|
|
ptr=ADD_TO_PTR(ptr,ptr_diff,char*);
|
|
if (null_ptr)
|
|
null_ptr=ADD_TO_PTR(null_ptr,ptr_diff,uchar*);
|
|
}
|
|
inline void get_image(char *buff,uint length, CHARSET_INFO *cs)
|
|
{ memcpy(buff,ptr,length); }
|
|
inline void set_image(char *buff,uint length, CHARSET_INFO *cs)
|
|
{ memcpy(ptr,buff,length); }
|
|
virtual void get_key_image(char *buff, uint length, imagetype type)
|
|
{ get_image(buff,length, &my_charset_bin); }
|
|
virtual void set_key_image(char *buff,uint length)
|
|
{ set_image(buff,length, &my_charset_bin); }
|
|
inline longlong val_int_offset(uint row_offset)
|
|
{
|
|
ptr+=row_offset;
|
|
longlong tmp=val_int();
|
|
ptr-=row_offset;
|
|
return tmp;
|
|
}
|
|
inline longlong val_int(char *new_ptr)
|
|
{
|
|
char *old_ptr= ptr;
|
|
longlong return_value;
|
|
ptr= new_ptr;
|
|
return_value= val_int();
|
|
ptr= old_ptr;
|
|
return return_value;
|
|
}
|
|
inline String *val_str(String *str, char *new_ptr)
|
|
{
|
|
char *old_ptr= ptr;
|
|
ptr= new_ptr;
|
|
val_str(str);
|
|
ptr= old_ptr;
|
|
return str;
|
|
}
|
|
virtual bool send_binary(Protocol *protocol);
|
|
virtual char *pack(char* to, const char *from, uint max_length=~(uint) 0)
|
|
{
|
|
uint32 length=pack_length();
|
|
memcpy(to,from,length);
|
|
return to+length;
|
|
}
|
|
virtual const char *unpack(char* to, const char *from)
|
|
{
|
|
uint length=pack_length();
|
|
memcpy(to,from,length);
|
|
return from+length;
|
|
}
|
|
virtual char *pack_key(char* to, const char *from, uint max_length)
|
|
{
|
|
return pack(to,from,max_length);
|
|
}
|
|
virtual char *pack_key_from_key_image(char* to, const char *from,
|
|
uint max_length)
|
|
{
|
|
return pack(to,from,max_length);
|
|
}
|
|
virtual const char *unpack_key(char* to, const char *from, uint max_length)
|
|
{
|
|
return unpack(to,from);
|
|
}
|
|
virtual uint packed_col_length(const char *to, uint length)
|
|
{ return length;}
|
|
virtual uint max_packed_col_length(uint max_length)
|
|
{ return max_length;}
|
|
|
|
virtual int pack_cmp(const char *a,const char *b, uint key_length_arg,
|
|
my_bool insert_or_update)
|
|
{ return cmp(a,b); }
|
|
virtual int pack_cmp(const char *b, uint key_length_arg,
|
|
my_bool insert_or_update)
|
|
{ return cmp(ptr,b); }
|
|
uint offset(); // Should be inline ...
|
|
void copy_from_tmp(int offset);
|
|
uint fill_cache_field(struct st_cache_field *copy);
|
|
virtual bool get_date(TIME *ltime,uint fuzzydate);
|
|
virtual bool get_time(TIME *ltime);
|
|
virtual CHARSET_INFO *charset(void) const { return &my_charset_bin; }
|
|
virtual CHARSET_INFO *sort_charset(void) const { return charset(); }
|
|
virtual bool has_charset(void) const { return FALSE; }
|
|
virtual void set_charset(CHARSET_INFO *charset) { }
|
|
bool set_warning(MYSQL_ERROR::enum_warning_level, unsigned int code,
|
|
int cuted_increment);
|
|
bool check_int(const char *str, int length, const char *int_end,
|
|
CHARSET_INFO *cs);
|
|
void set_datetime_warning(MYSQL_ERROR::enum_warning_level, uint code,
|
|
const char *str, uint str_len,
|
|
timestamp_type ts_type, int cuted_increment);
|
|
void set_datetime_warning(MYSQL_ERROR::enum_warning_level, uint code,
|
|
longlong nr, timestamp_type ts_type,
|
|
int cuted_increment);
|
|
void set_datetime_warning(MYSQL_ERROR::enum_warning_level, const uint code,
|
|
double nr, timestamp_type ts_type);
|
|
inline bool check_overflow(int op_result)
|
|
{
|
|
return (op_result == E_DEC_OVERFLOW);
|
|
}
|
|
int warn_if_overflow(int op_result);
|
|
void init(TABLE *table_arg)
|
|
{
|
|
orig_table= table= table_arg;
|
|
table_name= &table_arg->alias;
|
|
}
|
|
|
|
/* maximum possible display length */
|
|
virtual uint32 max_length()= 0;
|
|
|
|
virtual uint is_equal(create_field *new_field);
|
|
/* convert decimal to longlong with overflow check */
|
|
longlong convert_decimal2longlong(const my_decimal *val, bool unsigned_flag,
|
|
int *err);
|
|
/* The max. number of characters */
|
|
inline uint32 char_length() const
|
|
{
|
|
return field_length / charset()->mbmaxlen;
|
|
}
|
|
|
|
/* Hash value */
|
|
virtual void hash(ulong *nr, ulong *nr2);
|
|
friend bool reopen_table(THD *,struct st_table *,bool);
|
|
friend int cre_myisam(my_string name, register TABLE *form, uint options,
|
|
ulonglong auto_increment_value);
|
|
friend class Copy_field;
|
|
friend class Item_avg_field;
|
|
friend class Item_std_field;
|
|
friend class Item_sum_num;
|
|
friend class Item_sum_sum;
|
|
friend class Item_sum_str;
|
|
friend class Item_sum_count;
|
|
friend class Item_sum_avg;
|
|
friend class Item_sum_std;
|
|
friend class Item_sum_min;
|
|
friend class Item_sum_max;
|
|
friend class Item_func_group_concat;
|
|
};
|
|
|
|
|
|
class Field_num :public Field {
|
|
public:
|
|
const uint8 dec;
|
|
bool zerofill,unsigned_flag; // Purify cannot handle bit fields
|
|
Field_num(char *ptr_arg,uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg, utype unireg_check_arg,
|
|
const char *field_name_arg,
|
|
uint8 dec_arg, bool zero_arg, bool unsigned_arg);
|
|
Item_result result_type () const { return REAL_RESULT; }
|
|
void prepend_zeros(String *value);
|
|
void add_zerofill_and_unsigned(String &res) const;
|
|
friend class create_field;
|
|
void make_field(Send_field *);
|
|
uint decimals() const { return (uint) dec; }
|
|
uint size_of() const { return sizeof(*this); }
|
|
bool eq_def(Field *field);
|
|
int store_decimal(const my_decimal *);
|
|
my_decimal *val_decimal(my_decimal *);
|
|
uint is_equal(create_field *new_field);
|
|
};
|
|
|
|
|
|
class Field_str :public Field {
|
|
protected:
|
|
CHARSET_INFO *field_charset;
|
|
public:
|
|
Field_str(char *ptr_arg,uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg, utype unireg_check_arg,
|
|
const char *field_name_arg, CHARSET_INFO *charset);
|
|
Item_result result_type () const { return STRING_RESULT; }
|
|
uint decimals() const { return NOT_FIXED_DEC; }
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val)=0;
|
|
int store_decimal(const my_decimal *);
|
|
int store(const char *to,uint length,CHARSET_INFO *cs)=0;
|
|
uint size_of() const { return sizeof(*this); }
|
|
CHARSET_INFO *charset(void) const { return field_charset; }
|
|
void set_charset(CHARSET_INFO *charset) { field_charset=charset; }
|
|
bool binary() const { return field_charset == &my_charset_bin; }
|
|
uint32 max_length() { return field_length; }
|
|
friend class create_field;
|
|
my_decimal *val_decimal(my_decimal *);
|
|
virtual bool str_needs_quotes() { return TRUE; }
|
|
uint is_equal(create_field *new_field);
|
|
};
|
|
|
|
|
|
/* base class for Field_string, Field_varstring and Field_blob */
|
|
|
|
class Field_longstr :public Field_str
|
|
{
|
|
public:
|
|
Field_longstr(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg, utype unireg_check_arg,
|
|
const char *field_name_arg, CHARSET_INFO *charset)
|
|
:Field_str(ptr_arg, len_arg, null_ptr_arg, null_bit_arg, unireg_check_arg,
|
|
field_name_arg, charset)
|
|
{}
|
|
|
|
int store_decimal(const my_decimal *d);
|
|
};
|
|
|
|
/* base class for float and double and decimal (old one) */
|
|
class Field_real :public Field_num {
|
|
public:
|
|
Field_real(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg, utype unireg_check_arg,
|
|
const char *field_name_arg,
|
|
uint8 dec_arg, bool zero_arg, bool unsigned_arg)
|
|
:Field_num(ptr_arg, len_arg, null_ptr_arg, null_bit_arg, unireg_check_arg,
|
|
field_name_arg, dec_arg, zero_arg, unsigned_arg)
|
|
{}
|
|
int store_decimal(const my_decimal *);
|
|
my_decimal *val_decimal(my_decimal *);
|
|
};
|
|
|
|
|
|
class Field_decimal :public Field_real {
|
|
public:
|
|
Field_decimal(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
uint8 dec_arg,bool zero_arg,bool unsigned_arg)
|
|
:Field_real(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
dec_arg, zero_arg, unsigned_arg)
|
|
{}
|
|
enum_field_types type() const { return FIELD_TYPE_DECIMAL;}
|
|
enum ha_base_keytype key_type() const
|
|
{ return zerofill ? HA_KEYTYPE_BINARY : HA_KEYTYPE_NUM; }
|
|
void reset(void);
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
void overflow(bool negative);
|
|
bool zero_pack() const { return 0; }
|
|
void sql_type(String &str) const;
|
|
uint32 max_length() { return field_length; }
|
|
};
|
|
|
|
|
|
/* New decimal/numeric field which use fixed point arithmetic */
|
|
class Field_new_decimal :public Field_num {
|
|
public:
|
|
/* The maximum number of decimal digits can be stored */
|
|
uint precision;
|
|
uint bin_size;
|
|
/*
|
|
Constructors take max_length of the field as a parameter - not the
|
|
precision as the number of decimal digits allowed.
|
|
So for example we need to count length from precision handling
|
|
CREATE TABLE ( DECIMAL(x,y))
|
|
*/
|
|
Field_new_decimal(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
uint8 dec_arg, bool zero_arg, bool unsigned_arg);
|
|
Field_new_decimal(uint32 len_arg, bool maybe_null_arg,
|
|
const char *field_name_arg, uint8 dec_arg,
|
|
bool unsigned_arg);
|
|
enum_field_types type() const { return FIELD_TYPE_NEWDECIMAL;}
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_BINARY; }
|
|
Item_result result_type () const { return DECIMAL_RESULT; }
|
|
void reset(void);
|
|
bool store_value(const my_decimal *decimal_value);
|
|
void set_value_on_overflow(my_decimal *decimal_value, bool sign);
|
|
int store(const char *to, uint length, CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
int store_decimal(const my_decimal *);
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
my_decimal *val_decimal(my_decimal *);
|
|
String *val_str(String*, String *);
|
|
int cmp(const char *, const char*);
|
|
void sort_string(char *buff, uint length);
|
|
bool zero_pack() const { return 0; }
|
|
void sql_type(String &str) const;
|
|
uint32 max_length() { return field_length; }
|
|
uint size_of() const { return sizeof(*this); }
|
|
uint32 pack_length() const { return (uint32) bin_size; }
|
|
uint is_equal(create_field *new_field);
|
|
};
|
|
|
|
|
|
class Field_tiny :public Field_num {
|
|
public:
|
|
Field_tiny(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
bool zero_arg, bool unsigned_arg)
|
|
:Field_num(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
0, zero_arg,unsigned_arg)
|
|
{}
|
|
enum Item_result result_type () const { return INT_RESULT; }
|
|
enum_field_types type() const { return FIELD_TYPE_TINY;}
|
|
enum ha_base_keytype key_type() const
|
|
{ return unsigned_flag ? HA_KEYTYPE_BINARY : HA_KEYTYPE_INT8; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { ptr[0]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 1; }
|
|
void sql_type(String &str) const;
|
|
uint32 max_length() { return 4; }
|
|
};
|
|
|
|
|
|
class Field_short :public Field_num {
|
|
public:
|
|
Field_short(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
bool zero_arg, bool unsigned_arg)
|
|
:Field_num(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
0, zero_arg,unsigned_arg)
|
|
{}
|
|
Field_short(uint32 len_arg,bool maybe_null_arg, const char *field_name_arg,
|
|
bool unsigned_arg)
|
|
:Field_num((char*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0,0,
|
|
NONE, field_name_arg, 0, 0, unsigned_arg)
|
|
{}
|
|
enum Item_result result_type () const { return INT_RESULT; }
|
|
enum_field_types type() const { return FIELD_TYPE_SHORT;}
|
|
enum ha_base_keytype key_type() const
|
|
{ return unsigned_flag ? HA_KEYTYPE_USHORT_INT : HA_KEYTYPE_SHORT_INT;}
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { ptr[0]=ptr[1]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 2; }
|
|
void sql_type(String &str) const;
|
|
uint32 max_length() { return 6; }
|
|
};
|
|
|
|
|
|
class Field_medium :public Field_num {
|
|
public:
|
|
Field_medium(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
bool zero_arg, bool unsigned_arg)
|
|
:Field_num(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
0, zero_arg,unsigned_arg)
|
|
{}
|
|
enum Item_result result_type () const { return INT_RESULT; }
|
|
enum_field_types type() const { return FIELD_TYPE_INT24;}
|
|
enum ha_base_keytype key_type() const
|
|
{ return unsigned_flag ? HA_KEYTYPE_UINT24 : HA_KEYTYPE_INT24; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { ptr[0]=ptr[1]=ptr[2]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 3; }
|
|
void sql_type(String &str) const;
|
|
uint32 max_length() { return 8; }
|
|
};
|
|
|
|
|
|
class Field_long :public Field_num {
|
|
public:
|
|
Field_long(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
bool zero_arg, bool unsigned_arg)
|
|
:Field_num(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
0, zero_arg,unsigned_arg)
|
|
{}
|
|
Field_long(uint32 len_arg,bool maybe_null_arg, const char *field_name_arg,
|
|
bool unsigned_arg)
|
|
:Field_num((char*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0,0,
|
|
NONE, field_name_arg,0,0,unsigned_arg)
|
|
{}
|
|
enum Item_result result_type () const { return INT_RESULT; }
|
|
enum_field_types type() const { return FIELD_TYPE_LONG;}
|
|
enum ha_base_keytype key_type() const
|
|
{ return unsigned_flag ? HA_KEYTYPE_ULONG_INT : HA_KEYTYPE_LONG_INT; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
bool send_binary(Protocol *protocol);
|
|
String *val_str(String*,String *);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 4; }
|
|
void sql_type(String &str) const;
|
|
uint32 max_length() { return 11; }
|
|
};
|
|
|
|
|
|
#ifdef HAVE_LONG_LONG
|
|
class Field_longlong :public Field_num {
|
|
public:
|
|
Field_longlong(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
bool zero_arg, bool unsigned_arg)
|
|
:Field_num(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
0, zero_arg,unsigned_arg)
|
|
{}
|
|
Field_longlong(uint32 len_arg,bool maybe_null_arg,
|
|
const char *field_name_arg,
|
|
bool unsigned_arg)
|
|
:Field_num((char*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0,0,
|
|
NONE, field_name_arg,0,0,unsigned_arg)
|
|
{}
|
|
enum Item_result result_type () const { return INT_RESULT; }
|
|
enum_field_types type() const { return FIELD_TYPE_LONGLONG;}
|
|
enum ha_base_keytype key_type() const
|
|
{ return unsigned_flag ? HA_KEYTYPE_ULONGLONG : HA_KEYTYPE_LONGLONG; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=ptr[4]=ptr[5]=ptr[6]=ptr[7]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 8; }
|
|
void sql_type(String &str) const;
|
|
bool can_be_compared_as_longlong() const { return TRUE; }
|
|
uint32 max_length() { return 20; }
|
|
};
|
|
#endif
|
|
|
|
|
|
class Field_float :public Field_real {
|
|
public:
|
|
Field_float(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
uint8 dec_arg,bool zero_arg,bool unsigned_arg)
|
|
:Field_real(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
dec_arg, zero_arg, unsigned_arg)
|
|
{}
|
|
Field_float(uint32 len_arg, bool maybe_null_arg, const char *field_name_arg,
|
|
uint8 dec_arg)
|
|
:Field_real((char*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0, (uint) 0,
|
|
NONE, field_name_arg, dec_arg, 0, 0)
|
|
{}
|
|
enum_field_types type() const { return FIELD_TYPE_FLOAT;}
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_FLOAT; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { bzero(ptr,sizeof(float)); }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return sizeof(float); }
|
|
void sql_type(String &str) const;
|
|
uint32 max_length() { return 24; }
|
|
};
|
|
|
|
|
|
class Field_double :public Field_real {
|
|
public:
|
|
Field_double(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
uint8 dec_arg,bool zero_arg,bool unsigned_arg)
|
|
:Field_real(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
dec_arg, zero_arg, unsigned_arg)
|
|
{}
|
|
Field_double(uint32 len_arg, bool maybe_null_arg, const char *field_name_arg,
|
|
uint8 dec_arg)
|
|
:Field_real((char*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0, (uint) 0,
|
|
NONE, field_name_arg, dec_arg, 0, 0)
|
|
{}
|
|
enum_field_types type() const { return FIELD_TYPE_DOUBLE;}
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_DOUBLE; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { bzero(ptr,sizeof(double)); }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return sizeof(double); }
|
|
void sql_type(String &str) const;
|
|
uint32 max_length() { return 53; }
|
|
};
|
|
|
|
|
|
/* Everything saved in this will disappear. It will always return NULL */
|
|
|
|
class Field_null :public Field_str {
|
|
static uchar null[1];
|
|
public:
|
|
Field_null(char *ptr_arg, uint32 len_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_str(ptr_arg, len_arg, null, 1,
|
|
unireg_check_arg, field_name_arg, cs)
|
|
{}
|
|
enum_field_types type() const { return FIELD_TYPE_NULL;}
|
|
int store(const char *to, uint length, CHARSET_INFO *cs)
|
|
{ null[0]=1; return 0; }
|
|
int store(double nr) { null[0]=1; return 0; }
|
|
int store(longlong nr, bool unsigned_val) { null[0]=1; return 0; }
|
|
int store_decimal(const my_decimal *d) { null[0]=1; return 0; }
|
|
void reset(void) {}
|
|
double val_real(void) { return 0.0;}
|
|
longlong val_int(void) { return 0;}
|
|
my_decimal *val_decimal(my_decimal *) { return 0; }
|
|
String *val_str(String *value,String *value2)
|
|
{ value2->length(0); return value2;}
|
|
int cmp(const char *a, const char *b) { return 0;}
|
|
void sort_string(char *buff, uint length) {}
|
|
uint32 pack_length() const { return 0; }
|
|
void sql_type(String &str) const;
|
|
uint size_of() const { return sizeof(*this); }
|
|
uint32 max_length() { return 4; }
|
|
};
|
|
|
|
|
|
class Field_timestamp :public Field_str {
|
|
public:
|
|
Field_timestamp(char *ptr_arg, uint32 len_arg,
|
|
uchar *null_ptr_arg, uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
TABLE_SHARE *share, CHARSET_INFO *cs);
|
|
Field_timestamp(bool maybe_null_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs);
|
|
enum_field_types type() const { return FIELD_TYPE_TIMESTAMP;}
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONG_INT; }
|
|
enum Item_result cmp_type () const { return INT_RESULT; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 4; }
|
|
void sql_type(String &str) const;
|
|
bool can_be_compared_as_longlong() const { return TRUE; }
|
|
bool zero_pack() const { return 0; }
|
|
void set_time();
|
|
virtual void set_default()
|
|
{
|
|
if (table->timestamp_field == this &&
|
|
unireg_check != TIMESTAMP_UN_FIELD)
|
|
set_time();
|
|
else
|
|
Field::set_default();
|
|
}
|
|
/* Get TIMESTAMP field value as seconds since begging of Unix Epoch */
|
|
inline long get_timestamp(my_bool *null_value)
|
|
{
|
|
if ((*null_value= is_null()))
|
|
return 0;
|
|
#ifdef WORDS_BIGENDIAN
|
|
if (table && table->s->db_low_byte_first)
|
|
return sint4korr(ptr);
|
|
#endif
|
|
long tmp;
|
|
longget(tmp,ptr);
|
|
return tmp;
|
|
}
|
|
bool get_date(TIME *ltime,uint fuzzydate);
|
|
bool get_time(TIME *ltime);
|
|
timestamp_auto_set_type get_auto_set_type() const;
|
|
};
|
|
|
|
|
|
class Field_year :public Field_tiny {
|
|
public:
|
|
Field_year(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg)
|
|
:Field_tiny(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg, 1, 1)
|
|
{}
|
|
enum_field_types type() const { return FIELD_TYPE_YEAR;}
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
void sql_type(String &str) const;
|
|
bool can_be_compared_as_longlong() const { return TRUE; }
|
|
};
|
|
|
|
|
|
class Field_date :public Field_str {
|
|
public:
|
|
Field_date(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_str(ptr_arg, 10, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg, cs)
|
|
{}
|
|
Field_date(bool maybe_null_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_str((char*) 0,10, maybe_null_arg ? (uchar*) "": 0,0,
|
|
NONE, field_name_arg, cs) {}
|
|
enum_field_types type() const { return FIELD_TYPE_DATE;}
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONG_INT; }
|
|
enum Item_result cmp_type () const { return INT_RESULT; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 4; }
|
|
void sql_type(String &str) const;
|
|
bool can_be_compared_as_longlong() const { return TRUE; }
|
|
bool zero_pack() const { return 1; }
|
|
};
|
|
|
|
|
|
class Field_newdate :public Field_str {
|
|
public:
|
|
Field_newdate(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_str(ptr_arg, 10, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg, cs)
|
|
{}
|
|
enum_field_types type() const { return FIELD_TYPE_DATE;}
|
|
enum_field_types real_type() const { return FIELD_TYPE_NEWDATE; }
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_UINT24; }
|
|
enum Item_result cmp_type () const { return INT_RESULT; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
int store_time(TIME *ltime, timestamp_type type);
|
|
void reset(void) { ptr[0]=ptr[1]=ptr[2]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 3; }
|
|
void sql_type(String &str) const;
|
|
bool can_be_compared_as_longlong() const { return TRUE; }
|
|
bool zero_pack() const { return 1; }
|
|
bool get_date(TIME *ltime,uint fuzzydate);
|
|
bool get_time(TIME *ltime);
|
|
};
|
|
|
|
|
|
class Field_time :public Field_str {
|
|
public:
|
|
Field_time(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_str(ptr_arg, 8, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg, cs)
|
|
{}
|
|
Field_time(bool maybe_null_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_str((char*) 0,8, maybe_null_arg ? (uchar*) "": 0,0,
|
|
NONE, field_name_arg, cs) {}
|
|
enum_field_types type() const { return FIELD_TYPE_TIME;}
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_INT24; }
|
|
enum Item_result cmp_type () const { return INT_RESULT; }
|
|
int store_time(TIME *ltime, timestamp_type type);
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset(void) { ptr[0]=ptr[1]=ptr[2]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool get_date(TIME *ltime, uint fuzzydate);
|
|
bool send_binary(Protocol *protocol);
|
|
bool get_time(TIME *ltime);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 3; }
|
|
void sql_type(String &str) const;
|
|
bool can_be_compared_as_longlong() const { return TRUE; }
|
|
bool zero_pack() const { return 1; }
|
|
};
|
|
|
|
|
|
class Field_datetime :public Field_str {
|
|
public:
|
|
Field_datetime(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_str(ptr_arg, 19, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg, cs)
|
|
{}
|
|
Field_datetime(bool maybe_null_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_str((char*) 0,19, maybe_null_arg ? (uchar*) "": 0,0,
|
|
NONE, field_name_arg, cs) {}
|
|
enum_field_types type() const { return FIELD_TYPE_DATETIME;}
|
|
#ifdef HAVE_LONG_LONG
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONGLONG; }
|
|
#endif
|
|
enum Item_result cmp_type () const { return INT_RESULT; }
|
|
uint decimals() const { return DATETIME_DEC; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
int store_time(TIME *ltime, timestamp_type type);
|
|
void reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=ptr[4]=ptr[5]=ptr[6]=ptr[7]=0; }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
bool send_binary(Protocol *protocol);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return 8; }
|
|
void sql_type(String &str) const;
|
|
bool can_be_compared_as_longlong() const { return TRUE; }
|
|
bool zero_pack() const { return 1; }
|
|
bool get_date(TIME *ltime,uint fuzzydate);
|
|
bool get_time(TIME *ltime);
|
|
};
|
|
|
|
|
|
class Field_string :public Field_longstr {
|
|
public:
|
|
bool can_alter_field_type;
|
|
Field_string(char *ptr_arg, uint32 len_arg,uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_longstr(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg, cs),
|
|
can_alter_field_type(1) {};
|
|
Field_string(uint32 len_arg,bool maybe_null_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_longstr((char*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0, 0,
|
|
NONE, field_name_arg, cs),
|
|
can_alter_field_type(1) {};
|
|
|
|
enum_field_types type() const
|
|
{
|
|
return ((can_alter_field_type && orig_table &&
|
|
orig_table->s->db_create_options & HA_OPTION_PACK_RECORD &&
|
|
field_length >= 4) &&
|
|
orig_table->s->frm_version < FRM_VER_TRUE_VARCHAR ?
|
|
MYSQL_TYPE_VAR_STRING : MYSQL_TYPE_STRING);
|
|
}
|
|
enum ha_base_keytype key_type() const
|
|
{ return binary() ? HA_KEYTYPE_BINARY : HA_KEYTYPE_TEXT; }
|
|
bool zero_pack() const { return 0; }
|
|
void reset(void) { charset()->cset->fill(charset(),ptr,field_length,' '); }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(longlong nr, bool unsigned_val);
|
|
int store(double nr) { return Field_str::store(nr); } /* QQ: To be deleted */
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
my_decimal *val_decimal(my_decimal *);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
void sql_type(String &str) const;
|
|
char *pack(char *to, const char *from, uint max_length=~(uint) 0);
|
|
const char *unpack(char* to, const char *from);
|
|
int pack_cmp(const char *a,const char *b,uint key_length,
|
|
my_bool insert_or_update);
|
|
int pack_cmp(const char *b,uint key_length,my_bool insert_or_update);
|
|
uint packed_col_length(const char *to, uint length);
|
|
uint max_packed_col_length(uint max_length);
|
|
uint size_of() const { return sizeof(*this); }
|
|
enum_field_types real_type() const { return FIELD_TYPE_STRING; }
|
|
bool has_charset(void) const
|
|
{ return charset() == &my_charset_bin ? FALSE : TRUE; }
|
|
Field *new_field(MEM_ROOT *root, struct st_table *new_table, bool keep_type);
|
|
};
|
|
|
|
|
|
class Field_varstring :public Field_longstr {
|
|
public:
|
|
/* Store number of bytes used to store length (1 or 2) */
|
|
uint32 length_bytes;
|
|
Field_varstring(char *ptr_arg,
|
|
uint32 len_arg, uint length_bytes_arg,
|
|
uchar *null_ptr_arg, uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
TABLE_SHARE *share, CHARSET_INFO *cs)
|
|
:Field_longstr(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg, cs),
|
|
length_bytes(length_bytes_arg)
|
|
{
|
|
share->varchar_fields++;
|
|
}
|
|
Field_varstring(uint32 len_arg,bool maybe_null_arg,
|
|
const char *field_name_arg,
|
|
TABLE_SHARE *share, CHARSET_INFO *cs)
|
|
:Field_longstr((char*) 0,len_arg, maybe_null_arg ? (uchar*) "": 0, 0,
|
|
NONE, field_name_arg, cs),
|
|
length_bytes(len_arg < 256 ? 1 :2)
|
|
{
|
|
share->varchar_fields++;
|
|
}
|
|
|
|
enum_field_types type() const { return MYSQL_TYPE_VARCHAR; }
|
|
enum ha_base_keytype key_type() const;
|
|
bool zero_pack() const { return 0; }
|
|
void reset(void) { bzero(ptr,field_length+length_bytes); }
|
|
uint32 pack_length() const { return (uint32) field_length+length_bytes; }
|
|
uint32 key_length() const { return (uint32) field_length; }
|
|
uint32 sort_length() const
|
|
{
|
|
return (uint32) field_length + (field_charset == &my_charset_bin ?
|
|
length_bytes : 0);
|
|
}
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(longlong nr, bool unsigned_val);
|
|
int store(double nr) { return Field_str::store(nr); } /* QQ: To be deleted */
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
my_decimal *val_decimal(my_decimal *);
|
|
int cmp_max(const char *, const char *, uint max_length);
|
|
int cmp(const char *a,const char*b)
|
|
{
|
|
return cmp_max(a, b, ~0L);
|
|
}
|
|
void sort_string(char *buff,uint length);
|
|
void get_key_image(char *buff,uint length, imagetype type);
|
|
void set_key_image(char *buff,uint length);
|
|
void sql_type(String &str) const;
|
|
char *pack(char *to, const char *from, uint max_length=~(uint) 0);
|
|
char *pack_key(char *to, const char *from, uint max_length);
|
|
char *pack_key_from_key_image(char* to, const char *from, uint max_length);
|
|
const char *unpack(char* to, const char *from);
|
|
const char *unpack_key(char* to, const char *from, uint max_length);
|
|
int pack_cmp(const char *a, const char *b, uint key_length,
|
|
my_bool insert_or_update);
|
|
int pack_cmp(const char *b, uint key_length,my_bool insert_or_update);
|
|
int cmp_binary(const char *a,const char *b, uint32 max_length=~0L);
|
|
int key_cmp(const byte *,const byte*);
|
|
int key_cmp(const byte *str, uint length);
|
|
uint packed_col_length(const char *to, uint length);
|
|
uint max_packed_col_length(uint max_length);
|
|
uint32 data_length(const char *from);
|
|
uint size_of() const { return sizeof(*this); }
|
|
enum_field_types real_type() const { return MYSQL_TYPE_VARCHAR; }
|
|
bool has_charset(void) const
|
|
{ return charset() == &my_charset_bin ? FALSE : TRUE; }
|
|
Field *new_field(MEM_ROOT *root, struct st_table *new_table, bool keep_type);
|
|
Field *new_key_field(MEM_ROOT *root, struct st_table *new_table,
|
|
char *new_ptr, uchar *new_null_ptr,
|
|
uint new_null_bit);
|
|
uint is_equal(create_field *new_field);
|
|
void hash(ulong *nr, ulong *nr2);
|
|
};
|
|
|
|
|
|
class Field_blob :public Field_longstr {
|
|
protected:
|
|
uint packlength;
|
|
String value; // For temporaries
|
|
public:
|
|
Field_blob(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
TABLE_SHARE *share, uint blob_pack_length, CHARSET_INFO *cs);
|
|
Field_blob(uint32 len_arg,bool maybe_null_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs)
|
|
:Field_longstr((char*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0, 0,
|
|
NONE, field_name_arg, cs),
|
|
packlength(4)
|
|
{
|
|
flags|= BLOB_FLAG;
|
|
}
|
|
Field_blob(uint32 len_arg,bool maybe_null_arg, const char *field_name_arg,
|
|
CHARSET_INFO *cs, bool set_packlength)
|
|
:Field_longstr((char*) 0,len_arg, maybe_null_arg ? (uchar*) "": 0, 0,
|
|
NONE, field_name_arg, cs)
|
|
{
|
|
flags|= BLOB_FLAG;
|
|
packlength= 4;
|
|
if (set_packlength)
|
|
{
|
|
uint32 char_length= len_arg/cs->mbmaxlen;
|
|
packlength= char_length <= 255 ? 1 :
|
|
char_length <= 65535 ? 2 :
|
|
char_length <= 16777215 ? 3 : 4;
|
|
}
|
|
}
|
|
enum_field_types type() const { return FIELD_TYPE_BLOB;}
|
|
enum ha_base_keytype key_type() const
|
|
{ return binary() ? HA_KEYTYPE_VARBINARY2 : HA_KEYTYPE_VARTEXT2; }
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
my_decimal *val_decimal(my_decimal *);
|
|
int cmp_max(const char *, const char *, uint max_length);
|
|
int cmp(const char *a,const char*b)
|
|
{ return cmp_max(a, b, ~0L); }
|
|
int cmp(const char *a, uint32 a_length, const char *b, uint32 b_length);
|
|
int cmp_binary(const char *a,const char *b, uint32 max_length=~0L);
|
|
int key_cmp(const byte *,const byte*);
|
|
int key_cmp(const byte *str, uint length);
|
|
uint32 key_length() const { return 0; }
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const
|
|
{ return (uint32) (packlength+table->s->blob_ptr_size); }
|
|
uint32 sort_length() const;
|
|
inline uint32 max_data_length() const
|
|
{
|
|
return (uint32) (((ulonglong) 1 << (packlength*8)) -1);
|
|
}
|
|
void reset(void) { bzero(ptr, packlength+sizeof(char*)); }
|
|
void reset_fields() { bzero((char*) &value,sizeof(value)); }
|
|
void store_length(uint32 number);
|
|
inline uint32 get_length(uint row_offset=0)
|
|
{ return get_length(ptr+row_offset); }
|
|
uint32 get_length(const char *ptr);
|
|
void put_length(char *pos, uint32 length);
|
|
inline void get_ptr(char **str)
|
|
{
|
|
memcpy_fixed(str,ptr+packlength,sizeof(char*));
|
|
}
|
|
inline void get_ptr(char **str, uint row_offset)
|
|
{
|
|
memcpy_fixed(str,ptr+packlength+row_offset,sizeof(char*));
|
|
}
|
|
inline void set_ptr(char *length,char *data)
|
|
{
|
|
memcpy(ptr,length,packlength);
|
|
memcpy_fixed(ptr+packlength,&data,sizeof(char*));
|
|
}
|
|
inline void set_ptr(uint32 length,char *data)
|
|
{
|
|
store_length(length);
|
|
memcpy_fixed(ptr+packlength,&data,sizeof(char*));
|
|
}
|
|
void get_key_image(char *buff,uint length, imagetype type);
|
|
void set_key_image(char *buff,uint length);
|
|
void sql_type(String &str) const;
|
|
inline bool copy()
|
|
{ char *tmp;
|
|
get_ptr(&tmp);
|
|
if (value.copy(tmp,get_length(),charset()))
|
|
{
|
|
Field_blob::reset();
|
|
return 1;
|
|
}
|
|
tmp=(char*) value.ptr(); memcpy_fixed(ptr+packlength,&tmp,sizeof(char*));
|
|
return 0;
|
|
}
|
|
char *pack(char *to, const char *from, uint max_length= ~(uint) 0);
|
|
char *pack_key(char *to, const char *from, uint max_length);
|
|
char *pack_key_from_key_image(char* to, const char *from, uint max_length);
|
|
const char *unpack(char *to, const char *from);
|
|
const char *unpack_key(char* to, const char *from, uint max_length);
|
|
int pack_cmp(const char *a, const char *b, uint key_length,
|
|
my_bool insert_or_update);
|
|
int pack_cmp(const char *b, uint key_length,my_bool insert_or_update);
|
|
uint packed_col_length(const char *col_ptr, uint length);
|
|
uint max_packed_col_length(uint max_length);
|
|
void free() { value.free(); }
|
|
inline void clear_temporary() { bzero((char*) &value,sizeof(value)); }
|
|
friend void field_conv(Field *to,Field *from);
|
|
uint size_of() const { return sizeof(*this); }
|
|
bool has_charset(void) const
|
|
{ return charset() == &my_charset_bin ? FALSE : TRUE; }
|
|
uint32 max_length();
|
|
};
|
|
|
|
|
|
#ifdef HAVE_SPATIAL
|
|
class Field_geom :public Field_blob {
|
|
public:
|
|
enum geometry_type geom_type;
|
|
|
|
Field_geom(char *ptr_arg, uchar *null_ptr_arg, uint null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
TABLE_SHARE *share, uint blob_pack_length,
|
|
enum geometry_type geom_type_arg)
|
|
:Field_blob(ptr_arg, null_ptr_arg, null_bit_arg, unireg_check_arg,
|
|
field_name_arg, share, blob_pack_length, &my_charset_bin)
|
|
{ geom_type= geom_type_arg; }
|
|
Field_geom(uint32 len_arg,bool maybe_null_arg, const char *field_name_arg,
|
|
TABLE_SHARE *share, enum geometry_type geom_type_arg)
|
|
:Field_blob(len_arg, maybe_null_arg, field_name_arg, &my_charset_bin)
|
|
{ geom_type= geom_type_arg; }
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_VARBINARY2; }
|
|
enum_field_types type() const { return FIELD_TYPE_GEOMETRY; }
|
|
void sql_type(String &str) const;
|
|
int store(const char *to, uint length, CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
int store_decimal(const my_decimal *);
|
|
void get_key_image(char *buff,uint length,imagetype type);
|
|
uint size_of() const { return sizeof(*this); }
|
|
};
|
|
#endif /*HAVE_SPATIAL*/
|
|
|
|
|
|
class Field_enum :public Field_str {
|
|
protected:
|
|
uint packlength;
|
|
public:
|
|
TYPELIB *typelib;
|
|
Field_enum(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
uint packlength_arg,
|
|
TYPELIB *typelib_arg,
|
|
CHARSET_INFO *charset_arg)
|
|
:Field_str(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg, charset_arg),
|
|
packlength(packlength_arg),typelib(typelib_arg)
|
|
{
|
|
flags|=ENUM_FLAG;
|
|
}
|
|
enum_field_types type() const { return FIELD_TYPE_STRING; }
|
|
enum Item_result cmp_type () const { return INT_RESULT; }
|
|
enum Item_result cast_to_int_type () const { return INT_RESULT; }
|
|
enum ha_base_keytype key_type() const;
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
void reset() { bzero(ptr,packlength); }
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*,String *);
|
|
int cmp(const char *,const char*);
|
|
void sort_string(char *buff,uint length);
|
|
uint32 pack_length() const { return (uint32) packlength; }
|
|
void store_type(ulonglong value);
|
|
void sql_type(String &str) const;
|
|
uint size_of() const { return sizeof(*this); }
|
|
enum_field_types real_type() const { return FIELD_TYPE_ENUM; }
|
|
virtual bool zero_pack() const { return 0; }
|
|
bool optimize_range(uint idx, uint part) { return 0; }
|
|
bool eq_def(Field *field);
|
|
bool has_charset(void) const { return TRUE; }
|
|
/* enum and set are sorted as integers */
|
|
CHARSET_INFO *sort_charset(void) const { return &my_charset_bin; }
|
|
};
|
|
|
|
|
|
class Field_set :public Field_enum {
|
|
public:
|
|
Field_set(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg,
|
|
uint32 packlength_arg,
|
|
TYPELIB *typelib_arg, CHARSET_INFO *charset_arg)
|
|
:Field_enum(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
|
unireg_check_arg, field_name_arg,
|
|
packlength_arg,
|
|
typelib_arg,charset_arg)
|
|
{
|
|
flags=(flags & ~ENUM_FLAG) | SET_FLAG;
|
|
}
|
|
int store(const char *to,uint length,CHARSET_INFO *charset);
|
|
int store(double nr) { return Field_set::store((longlong) nr, FALSE); }
|
|
int store(longlong nr, bool unsigned_val);
|
|
virtual bool zero_pack() const { return 1; }
|
|
String *val_str(String*,String *);
|
|
void sql_type(String &str) const;
|
|
enum_field_types real_type() const { return FIELD_TYPE_SET; }
|
|
bool has_charset(void) const { return TRUE; }
|
|
};
|
|
|
|
|
|
/*
|
|
Note:
|
|
To use Field_bit::cmp_binary() you need to copy the bits stored in
|
|
the beginning of the record (the NULL bytes) to each memory you
|
|
want to compare (where the arguments point).
|
|
|
|
This is the reason:
|
|
- Field_bit::cmp_binary() is only implemented in the base class
|
|
(Field::cmp_binary()).
|
|
- Field::cmp_binary() currenly use pack_length() to calculate how
|
|
long the data is.
|
|
- pack_length() includes size of the bits stored in the NULL bytes
|
|
of the record.
|
|
*/
|
|
class Field_bit :public Field {
|
|
public:
|
|
uchar *bit_ptr; // position in record where 'uneven' bits store
|
|
uchar bit_ofs; // offset to 'uneven' high bits
|
|
uint bit_len; // number of 'uneven' high bits
|
|
uint bytes_in_rec;
|
|
Field_bit(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg, uchar *bit_ptr_arg, uchar bit_ofs_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg);
|
|
enum_field_types type() const { return FIELD_TYPE_BIT; }
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_BIT; }
|
|
uint32 key_length() const { return (uint32) (field_length + 7) / 8; }
|
|
uint32 max_length() { return field_length; }
|
|
uint size_of() const { return sizeof(*this); }
|
|
Item_result result_type () const { return INT_RESULT; }
|
|
void reset(void) { bzero(ptr, bytes_in_rec); }
|
|
int store(const char *to, uint length, CHARSET_INFO *charset);
|
|
int store(double nr);
|
|
int store(longlong nr, bool unsigned_val);
|
|
int store_decimal(const my_decimal *);
|
|
double val_real(void);
|
|
longlong val_int(void);
|
|
String *val_str(String*, String *);
|
|
virtual bool str_needs_quotes() { return TRUE; }
|
|
my_decimal *val_decimal(my_decimal *);
|
|
int cmp(const char *a, const char *b)
|
|
{ return cmp_binary(a, b); }
|
|
int cmp_binary_offset(uint row_offset)
|
|
{ return cmp_offset(row_offset); }
|
|
int cmp_max(const char *a, const char *b, uint max_length);
|
|
int key_cmp(const byte *a, const byte *b)
|
|
{ return cmp_binary((char *) a, (char *) b); }
|
|
int key_cmp(const byte *str, uint length);
|
|
int cmp_offset(uint row_offset);
|
|
void get_key_image(char *buff, uint length, imagetype type);
|
|
void set_key_image(char *buff, uint length)
|
|
{ Field_bit::store(buff, length, &my_charset_bin); }
|
|
void sort_string(char *buff, uint length)
|
|
{ get_key_image(buff, length, itRAW); }
|
|
uint32 pack_length() const { return (uint32) (field_length + 7) / 8; }
|
|
uint32 pack_length_in_rec() const { return bytes_in_rec; }
|
|
void sql_type(String &str) const;
|
|
char *pack(char *to, const char *from, uint max_length=~(uint) 0);
|
|
const char *unpack(char* to, const char *from);
|
|
Field *new_key_field(MEM_ROOT *root, struct st_table *new_table,
|
|
char *new_ptr, uchar *new_null_ptr,
|
|
uint new_null_bit);
|
|
void set_bit_ptr(uchar *bit_ptr_arg, uchar bit_ofs_arg)
|
|
{
|
|
bit_ptr= bit_ptr_arg;
|
|
bit_ofs= bit_ofs_arg;
|
|
}
|
|
bool eq(Field *field)
|
|
{
|
|
return (Field::eq(field) &&
|
|
field->type() == type() &&
|
|
bit_ptr == ((Field_bit *)field)->bit_ptr &&
|
|
bit_ofs == ((Field_bit *)field)->bit_ofs);
|
|
}
|
|
void move_field_offset(my_ptrdiff_t ptr_diff)
|
|
{
|
|
Field::move_field_offset(ptr_diff);
|
|
bit_ptr= ADD_TO_PTR(bit_ptr, ptr_diff, uchar*);
|
|
}
|
|
};
|
|
|
|
|
|
class Field_bit_as_char: public Field_bit {
|
|
public:
|
|
Field_bit_as_char(char *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
|
uchar null_bit_arg,
|
|
enum utype unireg_check_arg, const char *field_name_arg);
|
|
enum ha_base_keytype key_type() const { return HA_KEYTYPE_BINARY; }
|
|
uint size_of() const { return sizeof(*this); }
|
|
int store(const char *to, uint length, CHARSET_INFO *charset);
|
|
int store(double nr) { return Field_bit::store(nr); }
|
|
int store(longlong nr, bool unsigned_val)
|
|
{ return Field_bit::store(nr, unsigned_val); }
|
|
void sql_type(String &str) const;
|
|
};
|
|
|
|
|
|
/*
|
|
Create field class for CREATE TABLE
|
|
*/
|
|
|
|
class create_field :public Sql_alloc
|
|
{
|
|
public:
|
|
const char *field_name;
|
|
const char *change; // If done with alter table
|
|
const char *after; // Put column after this one
|
|
LEX_STRING comment; // Comment for field
|
|
Item *def; // Default value
|
|
enum enum_field_types sql_type;
|
|
/*
|
|
At various stages in execution this can be length of field in bytes or
|
|
max number of characters.
|
|
*/
|
|
ulong length;
|
|
/*
|
|
The value of `length' as set by parser: is the number of characters
|
|
for most of the types, or of bytes for BLOBs or numeric types.
|
|
*/
|
|
uint32 char_length;
|
|
uint decimals, flags, pack_length, key_length;
|
|
Field::utype unireg_check;
|
|
TYPELIB *interval; // Which interval to use
|
|
List<String> interval_list;
|
|
CHARSET_INFO *charset;
|
|
Field::geometry_type geom_type;
|
|
Field *field; // For alter table
|
|
|
|
uint8 row,col,sc_length,interval_id; // For rea_create_table
|
|
uint offset,pack_flag;
|
|
create_field() :after(0) {}
|
|
create_field(Field *field, Field *orig_field);
|
|
void create_length_to_internal_length(void);
|
|
|
|
/* Init for a tmp table field. To be extended if need be. */
|
|
void init_for_tmp_table(enum_field_types sql_type_arg,
|
|
uint32 max_length, uint32 decimals,
|
|
bool maybe_null, bool is_unsigned);
|
|
|
|
bool init(THD *thd, char *field_name, enum_field_types type, char *length,
|
|
char *decimals, uint type_modifier, Item *default_value,
|
|
Item *on_update_value, LEX_STRING *comment, char *change,
|
|
List<String> *interval_list, CHARSET_INFO *cs,
|
|
uint uint_geom_type);
|
|
};
|
|
|
|
|
|
/*
|
|
A class for sending info to the client
|
|
*/
|
|
|
|
class Send_field {
|
|
public:
|
|
const char *db_name;
|
|
const char *table_name,*org_table_name;
|
|
const char *col_name,*org_col_name;
|
|
ulong length;
|
|
uint charsetnr, flags, decimals;
|
|
enum_field_types type;
|
|
Send_field() {}
|
|
};
|
|
|
|
|
|
/*
|
|
A class for quick copying data to fields
|
|
*/
|
|
|
|
class Copy_field :public Sql_alloc {
|
|
void (*get_copy_func(Field *to,Field *from))(Copy_field *);
|
|
public:
|
|
char *from_ptr,*to_ptr;
|
|
uchar *from_null_ptr,*to_null_ptr;
|
|
my_bool *null_row;
|
|
uint from_bit,to_bit;
|
|
uint from_length,to_length;
|
|
Field *from_field,*to_field;
|
|
String tmp; // For items
|
|
|
|
Copy_field() {}
|
|
~Copy_field() {}
|
|
void set(Field *to,Field *from,bool save); // Field to field
|
|
void set(char *to,Field *from); // Field to string
|
|
void (*do_copy)(Copy_field *);
|
|
void (*do_copy2)(Copy_field *); // Used to handle null values
|
|
};
|
|
|
|
|
|
Field *make_field(TABLE_SHARE *share, char *ptr, uint32 field_length,
|
|
uchar *null_pos, uchar null_bit,
|
|
uint pack_flag, enum_field_types field_type,
|
|
CHARSET_INFO *cs,
|
|
Field::geometry_type geom_type,
|
|
Field::utype unireg_check,
|
|
TYPELIB *interval, const char *field_name);
|
|
uint pack_length_to_packflag(uint type);
|
|
enum_field_types get_blob_type_from_length(ulong length);
|
|
uint32 calc_pack_length(enum_field_types type,uint32 length);
|
|
int set_field_to_null(Field *field);
|
|
int set_field_to_null_with_conversions(Field *field, bool no_conversions);
|
|
|
|
/*
|
|
The following are for the interface with the .frm file
|
|
*/
|
|
|
|
#define FIELDFLAG_DECIMAL 1
|
|
#define FIELDFLAG_BINARY 1 // Shares same flag
|
|
#define FIELDFLAG_NUMBER 2
|
|
#define FIELDFLAG_ZEROFILL 4
|
|
#define FIELDFLAG_PACK 120 // Bits used for packing
|
|
#define FIELDFLAG_INTERVAL 256 // mangled with decimals!
|
|
#define FIELDFLAG_BITFIELD 512 // mangled with decimals!
|
|
#define FIELDFLAG_BLOB 1024 // mangled with decimals!
|
|
#define FIELDFLAG_GEOM 2048 // mangled with decimals!
|
|
|
|
#define FIELDFLAG_TREAT_BIT_AS_CHAR 4096 /* use Field_bit_as_char */
|
|
|
|
#define FIELDFLAG_LEFT_FULLSCREEN 8192
|
|
#define FIELDFLAG_RIGHT_FULLSCREEN 16384
|
|
#define FIELDFLAG_FORMAT_NUMBER 16384 // predit: ###,,## in output
|
|
#define FIELDFLAG_NO_DEFAULT 16384 /* sql */
|
|
#define FIELDFLAG_SUM ((uint) 32768)// predit: +#fieldflag
|
|
#define FIELDFLAG_MAYBE_NULL ((uint) 32768)// sql
|
|
#define FIELDFLAG_PACK_SHIFT 3
|
|
#define FIELDFLAG_DEC_SHIFT 8
|
|
#define FIELDFLAG_MAX_DEC 31
|
|
#define FIELDFLAG_NUM_SCREEN_TYPE 0x7F01
|
|
#define FIELDFLAG_ALFA_SCREEN_TYPE 0x7800
|
|
|
|
#define MTYP_TYPENR(type) (type & 127) /* Remove bits from type */
|
|
|
|
#define f_is_dec(x) ((x) & FIELDFLAG_DECIMAL)
|
|
#define f_is_num(x) ((x) & FIELDFLAG_NUMBER)
|
|
#define f_is_zerofill(x) ((x) & FIELDFLAG_ZEROFILL)
|
|
#define f_is_packed(x) ((x) & FIELDFLAG_PACK)
|
|
#define f_packtype(x) (((x) >> FIELDFLAG_PACK_SHIFT) & 15)
|
|
#define f_decimals(x) ((uint8) (((x) >> FIELDFLAG_DEC_SHIFT) & FIELDFLAG_MAX_DEC))
|
|
#define f_is_alpha(x) (!f_is_num(x))
|
|
#define f_is_binary(x) ((x) & FIELDFLAG_BINARY) // 4.0- compatibility
|
|
#define f_is_enum(x) (((x) & (FIELDFLAG_INTERVAL | FIELDFLAG_NUMBER)) == FIELDFLAG_INTERVAL)
|
|
#define f_is_bitfield(x) (((x) & (FIELDFLAG_BITFIELD | FIELDFLAG_NUMBER)) == FIELDFLAG_BITFIELD)
|
|
#define f_is_blob(x) (((x) & (FIELDFLAG_BLOB | FIELDFLAG_NUMBER)) == FIELDFLAG_BLOB)
|
|
#define f_is_geom(x) (((x) & (FIELDFLAG_GEOM | FIELDFLAG_NUMBER)) == FIELDFLAG_GEOM)
|
|
#define f_is_equ(x) ((x) & (1+2+FIELDFLAG_PACK+31*256))
|
|
#define f_settype(x) (((int) x) << FIELDFLAG_PACK_SHIFT)
|
|
#define f_maybe_null(x) (x & FIELDFLAG_MAYBE_NULL)
|
|
#define f_no_default(x) (x & FIELDFLAG_NO_DEFAULT)
|
|
#define f_bit_as_char(x) ((x) & FIELDFLAG_TREAT_BIT_AS_CHAR)
|