Araq / ormin

Ormin -- An ORM for Nim.
MIT License
153 stars 18 forks source link

fix #6 #23

Closed huaxk closed 4 years ago

huaxk commented 4 years ago

fix #6 ormin_postgre.nim(34, 20) Error: undeclared identifier: 'name'

Araq commented 4 years ago

This fix is not correct, it's supposed to run at compile-time.

huaxk commented 4 years ago

This fix works fine on compile-time. proc prepareStmt has no side effects beyond possibly modifying compile-time variables: sid. please refer to 'Constants and Constant Expressions' of nim manual.

Araq commented 4 years ago

Since I wrote the Nim manual, I think I know these things. However, I'm merging it now, can improve it later on my own.

huaxk commented 4 years ago

13 is the same problem, the issues should be closed.