Saving uuid with binary datatype

21 views
Skip to first unread message

stephen osewe

unread,
Sep 19, 2016, 11:50:28 AM9/19/16
to NotORM
Hi guys,

i am new to NOTORM,I am trying to save a binary uuid which I have retrieved from a related table (am using id and uuid as PKs).Is there any special way of saving the UUID retrieved into this table?
see below part of the code:

$this->person_uuid="".$this->GetUUID().""; [I am retrieving a uuid that had been converted to binary already,I want to save it as is]

            try{

                $ovc=Array(
                    "id"                   =>null,
                    "uuid"                 =>new NotORM_Literal("unhex(replace(uuid(),'-',''))"),
                    "person_id"            =>$this->personId,
                    "person_uuid"          =>$this->person_uuid,
Reply all
Reply to author
Forward
0 new messages