Jason (jcreed) wrote,
Jason
jcreed

I was mystified for a lot longer than I feel I should have been as to why
var sql = [
    ["BEGIN TRANSACTION"],
    ["INSERT INTO SOME PLAUSIBLE SQL WITH A PARAMETER LIKE $1;", [JSON.stringify(state)]]
    ["COMMIT"],
  ];
console.log(sql);

produced
   [["BEGIN TRANSACTION"], undefined]


I feel like this says something about human perception or cognition or something.
Tags: javascript, programming
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 6 comments