Opened 7 years ago
Last modified 11 days ago
#198 new defect
MRDS retrieve display is ill-formatted
| Reported by: | Owned by: | Eric Swenson | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Tools | Version: | |
| Keywords: | Cc: |
Description
http://ringzero.wikidot.com/wiki:cac-2020-01-28
Observed by Kazuhisa Shimizu
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)
The "\000" seem to be in error.
Change History (3)
comment:1 by , 22 months ago
| Summary: | MRDS retreive display is ill-formatted → MRDS retrieve display is ill-formatted |
|---|
Note:
See TracTickets
for help on using tickets.

We could add to the
iox_$get_charsdescription (iox_.infoand AG93) something like:If fewer than N bytes remain before the end of the file or device, the remaining bytes are returned with n_read set ccordingly; the code may then be either 0 or error_table_end_of_info, depending on the I/O module.
error_table_short_record means that fewer than N bytes were returned although more data follows.
Callers should therefore always use
n_read, whatever the code.Files: documentation only (
iox_.info), if the clarification is accepted.