Menu ▾ ▴

#21 Add bool data type to CppDB

Unstable_(example)
open
nobody
cppdb (1)
9
2017-03-04
2017-03-04
CN Liou
No

Important! This patch works only for PostgreSQL. Applying this patch will cause all other back end drivers unable to compile.

Please check comments TODO in this diff file before applying this patch. All except PostgreSQL drivers are commented out in CMakefile.

changes made:

  • adding bool data type
  • moving PGconn* from private to public so that applications can do lower level works like this:

    cppdb::postgresql::connection cppdb_pg_conn(cppdb::connection_info("CONN-STRING"));
    PGconn *pg_conn=cppdb_pg_conn.pg_conn();
    PQexec(pg_conn,"LISTEN notify_me_of_changes");
    int sock=PQsocket(pg_conn);

This diff file comes from svn diff applied to cppdb/trunk.

Discussion

  • CN Liou

    CN Liou - 2017-03-04

    Sorry! This is is missing attachment of the patch file.

     

Anonymous
Anonymous

Add attachments
Cancel