Hi everybody,

I'm not sure if I'm writing my query in the right place. Sorry if I'm not.

I'm checking the included tests, in particular test7:

        statement st1 = (sql.prepare <<
            "update soci_test set val = val + 1");
        st1.execute(false);

        assert(st1.get_affected_rows() == 10);

This pass the test. But the following lines doesn't:

        int x = 0;

        statement st1 = (sql.prepare <<
            "update soci_test set val = val + :x", use(x));

        x = 1;

        st1.execute(false);

        assert(st1.get_affected_rows() == 10);


Am I using the statement in the right way?

Best regards.
Ignacio
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to