diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-05-23 02:58:33 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-05-23 02:58:33 -0400 |
commit | 752be8d81d14b3a2a547dc9eb18976b4cce7545d (patch) | |
tree | 28c13bb7fe062310f21d17e213fabf46ecba8392 /src | |
parent | ac4726fa61215ced497ea13befd01d2fb40226e5 (diff) | |
download | guff-752be8d81d14b3a2a547dc9eb18976b4cce7545d.tar.bz2 guff-752be8d81d14b3a2a547dc9eb18976b4cce7545d.zip |
clean up add_user query
Diffstat (limited to 'src')
-rw-r--r-- | src/guff.cr | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/guff.cr b/src/guff.cr index 82ab5a9..00d6daa 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -387,19 +387,8 @@ module Guff ", add_user: " - INSERT INTO users( - role_id, - name, - email, - password, - is_active - ) VALUES ( - (SELECT role_id FROM roles where role = ?), - ?, - ?, - ?, - ? - ) + INSERT INTO users(role_id, name, email, password, is_active) VALUES + ((SELECT role_id FROM roles where role = ?), ?, ?, ?, ?) ", set_user: " |