Works perfectly fine for me with gcc 7.1.0. Why do you think that a pointer to an arbitrary data block can be sent to cout?
What result are you expecting? --- The fact that there's a Highway to Hell but only a Stairway to Heaven says a lot about anticipated traffic volume. >-----Original Message----- >From: sqlite-users [mailto:sqlite-users- >[email protected]] On Behalf Of Papa >Sent: Thursday, 31 August, 2017 19:43 >To: SQLite Mailing List >Subject: [sqlite] Yes, NULL is zero, is it? > >This is not a SQLite3 problem, it shows to be a MinGW >(mingw32/7.1.0/...) -> Target: 64bit, however, I just wanted to know >if >anyone here has experience the same problem. > > std::string sql_statement_request; > ... > rc = sqlite3_prepare_v2(db, > sql_statement_request.data(), > -1, > &binary_sql_statement, > NULL); > std::cout << binary_sql_statement << std::endl; // ==> 0 (zero) > if (binary_sql_statement != NULL) { > //do something //==> Does not display anything > } > >Thanks in advance > >-- >ArbolOne.ca >Using Fire Fox and Thunderbird. >ArbolOne is composed of students and volunteers dedicated to >providing free services to charitable organizations. >ArbolOne on Java Development in progress [ í ] > >_______________________________________________ >sqlite-users mailing list >[email protected] >http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list [email protected] http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

