diff options
author | serg@serg.mylan <> | 2003-05-03 01:16:56 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2003-05-03 01:16:56 +0200 |
commit | 784fb81426e917cb66ace05310ebccafb23a4b1b (patch) | |
tree | 467d41e9c8504f3a06fc667f9a989394e4a6bce7 /sql/unireg.h | |
parent | 0f653b6fed0c742aa49ed621839eaeda080ebb20 (diff) | |
download | mariadb-git-784fb81426e917cb66ace05310ebccafb23a4b1b.tar.gz |
INSERT ... UPDATE ... VALUES()
Diffstat (limited to 'sql/unireg.h')
-rw-r--r-- | sql/unireg.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/unireg.h b/sql/unireg.h index 9430329e67a..e89bc71eeb0 100644 --- a/sql/unireg.h +++ b/sql/unireg.h @@ -103,13 +103,13 @@ #define SPECIAL_SAFE_MODE 2048 /* Extern defines */ -#define store_record(A,B) bmove_allign((A)->record[B],(A)->record[0],(size_t) (A)->reclength) -#define restore_record(A,B) bmove_allign((A)->record[0],(A)->record[B],(size_t) (A)->reclength) -#define cmp_record(A,B) memcmp((A)->record[0],(A)->record[B],(size_t) (A)->reclength) +#define store_record(A,B) bmove_allign((A)->B,(A)->record[0],(size_t) (A)->reclength) +#define restore_record(A,B) bmove_allign((A)->record[0],(A)->B,(size_t) (A)->reclength) +#define cmp_record(A,B) memcmp((A)->record[0],(A)->B,(size_t) (A)->reclength) #define empty_record(A) { \ -bmove_allign((A)->record[0],(A)->record[2],(size_t) (A)->reclength); \ -bfill((A)->null_flags,(A)->null_bytes,255);\ -} + restore_record((A),default_values); \ + bfill((A)->null_flags,(A)->null_bytes,255);\ + } /* Defines for use with openfrm, openprt and openfrd */ |