Skip to content

Commit

Permalink
Merge pull request #16 from guzman-raphael/throw-dj0-error
Browse files Browse the repository at this point in the history
Throw error if dj0 detected in blob serialization
  • Loading branch information
dimitri-yatsenko authored Sep 24, 2019
2 parents 2130992 + 66c4eba commit 3e9e199
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
Binary file modified distribution/mexa64/mym.mexa64
Binary file not shown.
Binary file modified distribution/mexmaci64/mym.mexmaci64
Binary file not shown.
Binary file modified distribution/mexw64/mym.mexw64
Binary file not shown.
3 changes: 3 additions & 0 deletions src/mym.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,9 @@ static void getSerialFct(const char* rpt, const mxArray* rparg, pfserial& rpf, b

// entry point
mxArray* deserialize(const char* rpSerial, const size_t rlength) {
if (!strcasecmp(rpSerial, "dj0"))
mexErrMsgIdAndTxt("DataJoint:CrossPlatform:Compatibility",
"Blob data ingested utilizing DataJoint-Python version >=0.12 not yet supported.");
mxArray* p_res = NULL;
bool could_not_deserialize = true;
bool used_compression = false;
Expand Down

0 comments on commit 3e9e199

Please sign in to comment.