![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
managed to track down that the problem is in the 4th attribute and causes a E_DM0009_BAD_ATTR_SIZE Illegal size for attribute error. |
|
PS. Does anyone know why we can't set the per_tag to II_P_DATA? The dmpe.c is coded to produce the E_AD700D error if it sees anything other that II_P_COUPON. |
#4
| |||
| |||
|
|
It's failing the adc_lenchk check on the 4th attribute. I'm guessing that this is via a call to dmu_create in dmpe_create_extension, in which case that attribute is for the "underlying data type", ie the value holder column in the extension table. This in turn comes from an adi_per_under call against the long type. |
|
Marty, you probably already know more about blobs than anyone else, |
#5
| |||
| |||
|
|
Hi Karl, It's failing the adc_lenchk check on the 4th attribute. I'm guessing that this is via a call to dmu_create in dmpe_create_extension, in which case that attribute is for the "underlying data type", ie the value holder column in the extension table. This in turn comes from an adi_per_under call against the long type. As per the manual... I've set the pop_underdv->db_datatype to II_LBYTE and then used a call to the II_LO_HANDLER with II_INFORMATION to set the db_length in the pop_underdv. This has set it the db_length to 1980. |
, but I would have thought
#6
| |||
| |||
|
|
It's failing the adc_lenchk check on the 4th attribute. I'm guessing that this is via a call to dmu_create in dmpe_create_extension, in which case that attribute is for the "underlying data type", ie the value holder column in the extension table. This in turn comes from an adi_per_under call against the long type. As per the manual... I've set the pop_underdv->db_datatype to II_LBYTE and then used a call to the II_LO_HANDLER with II_INFORMATION to set the db_length in the pop_underdv. This has set it the db_length to 1980. I haven't tried reading the manual yet , but I would have thoughtthat the underdv type should be II_BYTE or whatever it's called, not LBYTE. Surely pop_underdv is the underlying data type which would be byte. |
|
I had the dmpe part of blobs sorta-kinda figured out when I had to fix the coupon contents for parallel copy, but that was a couple years ago and I've managed to forget a lot of it. I never did have any clue what was going on inside of adc_xform and the other ADF bits related to blobs. Recent edit history entries are pretty few and far between. What we need is some sort of reasonably comprehensive overview document on how blobs work; I suspect there might have been such a thing on paper, once upon a time, but nobody has ever claimed ownership of such a thing that I know of. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Before you blame your encrypt function, try: select hex(varchar(encrypt('asdf',string),30)) from long_x |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |