CAC 2020-01-28

This page is obsolete and archived!


Possible DB bug observed by Kazuhisa Shimizu

http://blog.livedoor.jp/suzanhud/archives/31133698.html

cd db
cwd db
edm
domain:      char_12    char(12),
             char_5     char(5);

attribute:   name       char_12,
             emp_num    char_5,
             comp       char_5;

relation:    Employee (name  emp_num* comp),
             Comp_mgr (comp* emp_num);
.
w foo.cmdb
q
create_mrds_db foo Pers_Info -list
edm
dom: a bit; /* simplest possible database */
rel: b(a*);
.
w x.cmdb
q
cmdb x small -list
create_mrds_dm_include Pers_Info -based
mrds_call open Pers_Info eu
mrds_call store 1 Employee name1 123 comp1
mrds_call retrieve 6 1 "-range (e Employee) -select e" -all
Values are:

\000\000\000\000r_dir_dir>SysAdmin>Repair>db>Pers_Info.db
\c
\c                        exclusive_update    \400\000\000\000\000\000\000\000\
\c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
\c00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\c\000\000
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\c\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
\c00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\c\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
\c00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\c\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
\c00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000
\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\c\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
\c00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\c\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
\c00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000
\c\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
\c000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0
\c00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00
\c0\000\000\000\000\000
name1
123
comp1

(END)
mrds_call

      421                                         call ioa_ ("^/Value^[ is^;s are^]:^/", (n_vals = 1));
      422
      423                                         do i = 1 to n_vals;
      424                                              call ioa_ ("^a", values (i));
      425                                         end;

I am pretty certain that ioa_ "^a" will only print "\000" if it is passed in a string with nulls. The ioa_ is not the problem.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License