Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested sql.raw tags #13

Closed
lucleray opened this issue Nov 21, 2018 · 1 comment
Closed

Nested sql.raw tags #13

lucleray opened this issue Nov 21, 2018 · 1 comment

Comments

@lucleray
Copy link
Member

lucleray commented Nov 21, 2018

const sql = require('@sequencework/sql')
console.log(sql`
  0  ${sql.raw(`
            1 ${sql.raw('2')}
  `)}
`.text)

Output :

\n  0  \n            1 [object Object]\n  \n

Expected :

\n  0  \n            1 2\n  \n

Actually, it's not really a bug, it's more a discussion.

@lucleray lucleray changed the title Bug : nested sql.raw tags Nested sql.raw tags Nov 21, 2018
@lucleray
Copy link
Member Author

Actually, what I wanted to do should just be done with the normal sql tag 😄 :

const sql = require('@sequencework/sql')
console.log(sql`
  0  ${sql`
            1 ${sql`2`}
  `}
`.text)

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

No branches or pull requests

1 participant