Skip to content

Instantly share code, notes, and snippets.

@mookid8000
Created March 13, 2013 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mookid8000/5149813 to your computer and use it in GitHub Desktop.
Save mookid8000/5149813 to your computer and use it in GitHub Desktop.
Any reason why this yields NULL in `SomeIntegerColumn` in the database?
sqlReplicate('SomeTable', {
Id: documentId,
SomeIntegerColumn: 23
});
@mookid8000
Copy link
Author

Yes, it should be

sqlReplicate('SomeTable', 'Id', {
  SomeIntegerColumn: 23
});

because the signature of sqlReplicate is (tableName, documentKeyColumnName, map)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment