Skip to content

Error creating Document: Unrecognized type: Pc #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Create a method inside a class to create a document into db 
2. Run the application and fire up the create document process


What is the expected output? What do you see instead?
The expected ouput/result: Create a new document inside DB
I see: Unrecognized type: Pc

What version of the product are you using? On what operating system?
Running on Mac OS X Snow Leopard 10.6.7.. using CouchdbX community and the last 
version of couchdbpp

Please provide any additional information below.

the code used:
try{
            CouchDB::Connection conn;
            CouchDB::Database db = conn.getDatabase("test");
            CouchDB::Object obj;
            obj["Evento"] = CouchDB::createVariant(nombre_evento);
            obj["Fecha"]  = CouchDB::createVariant(fecha);
            obj["Tipo"]  = CouchDB::createVariant("TIPO");
            obj["VideoPath"] = CouchDB::createVariant("/video/video.avi");
            CouchDB::Variant data = CouchDB::createVariant(obj);
            db.createDocument(data);
        }catch(CouchDB::Exception &e){
            std::cerr << e.what() << std::endl;
        }



Original issue reported on code.google.com by msdark...@gmail.com on 7 Jun 2011 at 4:03

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions