]> Nishi Git Mirror - dataworks.git/commitdiff
fix flag issue
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Tue, 28 May 2024 03:24:25 +0000 (03:24 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Tue, 28 May 2024 03:24:25 +0000 (03:24 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@126 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Library/database_record.c
Library/exec.c

index d2c40b90fd854f2e39bdd9ae4b11d2f99d85e479..e412110e4167a889dd676b7384180ce16628b9db 100644 (file)
@@ -51,6 +51,7 @@ void __dw_add_record(struct dataworks_db* db, uint64_t count, uint64_t dbindex,
                        if(feof(db->fp)) break;
                        if(!(dbentry.flag & DATAWORKS_V1_DBENTRY_USED)) {
                                fseek(db->fp, -(1 + 8 + 8 + 1 + 1 + 8 + 8), SEEK_CUR);
+                               buf[0] = 0;
                                buf[0] |= DATAWORKS_V1_DBENTRY_USED;
                                uint64_t writ = 0;
                                if(dbentry.size <= size) {
index e6add8ea292b789056370ef23b2133cc2e6674a6..910ae053b42f391997f95df95fd095be88afe211 100644 (file)
@@ -224,7 +224,7 @@ struct dataworks_db_result* __dataworks_database_execute_code(struct dataworks_d
                                        double dn = 123123;
                                        int64_t in = 123123;
                                        void* data[3];
-                                       data[0] = "data";
+                                       data[0] = "dataworks";
                                        data[1] = &dn;
                                        data[2] = &in;
                                        struct dataworks_db_result* dbr = dataworks_database_insert_record(db, data, "SSS");