Commit graph

910 commits

Author SHA1 Message Date
Aaron L
112a836af2 Make UDT's that aren't enums fall through
- This allows typse that are not enumerations to properly escape the
  enumeration code in the query.
- Fix #131
2017-04-28 21:07:39 -07:00
Aaron L
7a8d78cceb Merge branch 'mssql_tests' into dev 2017-04-28 20:08:34 -07:00
Aaron L
ecad5334fb Fix MySQL protocol selection
- If MySQL host exists on the filesystem as a file, then expect that
  this is actually a unix socket. If not, add protocol=tcp to force the
  mysql client to use tcp otherwise it tries unix sockets for no reason.
  Thanks MySQL.
2017-04-28 20:01:27 -07:00
Aaron L
196b4099a1 Merge branch 'nemec/mssql_tests' into mssql_tests 2017-04-28 19:30:12 -07:00
Sergey Kurt
a3442a5ab4 Fixed INSERT-SELECT deadlocks in tests 2017-04-28 23:58:17 +03:00
Aaron L
a9264e6447 Merge branch 'maks/fix_noauto_template' into dev 2017-04-24 10:15:00 -07:00
Maksim
bdd28d9d5b fix removing whitespace 2017-04-24 12:46:56 -04:00
Aaron L
7de817b111 Add dep fetch to tests part 2017-04-23 17:33:47 -07:00
Aaron L
0b44c26a26 Add passwords to psql/mysql 2017-04-23 16:39:36 -07:00
Aaron L
36ae141304 Turn off PSQL SSL in tests 2017-04-23 16:22:10 -07:00
Aaron L
85c9104d34 Fix syntax error 2017-04-23 16:17:46 -07:00
Aaron L
5ee4b06c9b Move CircleCI file to correct spot 2017-04-23 16:16:07 -07:00
Aaron L
3a38ed1f7a Add Dockerfile 2017-04-23 16:14:37 -07:00
Aaron L
e4d1e606fd CI for mssql
- Fix a bug where mysql was never tested in CI (hah!)
2017-04-23 16:00:24 -07:00
Aaron
d9b991e487 Merge remote-tracking branch 'michsior/dev' into dev 2017-04-16 11:35:12 -07:00
Michał Mrozek
91a798d9af Update global.go 2017-04-16 20:00:43 +02:00
Aaron L
0818af0e26 Don't use XSlice where unneeded.
- In the bowels of the eager loading we weave in and out of reflection,
  but we should not care about using XSlice unless it's going back to
  the user. This change makes it so the XSlice is only used where it
  matters, everywhere else is *[]*X to avoid type assertion errors from
  being able to have either or come into the Load() functions.
- Fix #124
2017-04-04 19:44:36 -07:00
Aaron L
10cfe74989 Fix a bug that could occur on no-field inserts 2017-04-04 19:42:49 -07:00
Aaron L
d13410617f Correct whitespace errors 2017-04-04 19:40:12 -07:00
Aaron L
3d1f3fc609 Use different schema names for different drivers 2017-04-02 09:40:08 -07:00
Sergey Kurt
4560da9bd1 Fixed comment for TableNames 2017-04-02 12:48:29 +03:00
Sergey Kurt
fd2c7ad764 Fixed Upsert statement for postgres, mysql 2017-04-02 12:27:33 +03:00
Sergey Kurt
b2acda8ade Generic Select statement in Reload 2017-04-01 21:11:01 +03:00
Sergey Kurt
f913d5e791 Generic Delete statement 2017-04-01 21:08:29 +03:00
Sergey Kurt
178d925c24 Generic Update statement 2017-04-01 21:00:13 +03:00
Sergey Kurt
783e7a82b3 Choosing StartIndex at template time 2017-04-01 20:30:40 +03:00
Sergey Kurt
b6d0a5142a Removed special case for mssql 2017-04-01 20:16:05 +03:00
Sergey Kurt
e1dfd0bb1e Newline at end of file 2017-04-01 18:59:22 +03:00
Sergey Kurt
a4ba4b6e9d Uniqueidentifier now treated as uuid 2017-03-31 11:39:12 +03:00
Sergey Kurt
dfbcef7fe3 Fixed typo and combined variables declaration 2017-03-31 11:27:34 +03:00
Sergey Kurt
874d2ed2e6 Fixed type for non-nullable uniqueidentifier, xml 2017-03-31 11:24:11 +03:00
Sergey Kurt
dbf897977a Newline at end of file 2017-03-31 11:07:30 +03:00
Sergey Kurt
b10df110a0 Newline at end of file 2017-03-31 11:05:52 +03:00
Sergey Kurt
b4fc4447f8 Fixed trim direction 2017-03-31 11:03:16 +03:00
Sergey Kurt
83b935168f Branching with if-else 2017-03-31 10:59:03 +03:00
Sergey Kurt
8ef33a1127 PkgName in error 2017-03-31 10:52:54 +03:00
Sergey Kurt
f4b9b2a406 Better startIndex calculation 2017-03-21 13:15:37 +03:00
Sergey Kurt
9bafa2f158 MSSQL Upsert statement 2017-03-21 13:04:07 +03:00
Sergey Kurt
6bc6b1690c Fixed FK constraints 2017-03-20 12:50:33 +03:00
Sergey Kurt
13bdda4e20 Simplified insert query 2017-03-19 18:12:06 +03:00
Sergey Kurt
68ac8a3c34 Disabled UseLastInsertID in favor of query output params 2017-03-19 18:05:55 +03:00
Sergey Kurt
d40d074320 Filtering columns with auto values 2017-03-19 12:44:15 +03:00
Sergey Kurt
12dce9d986 Auto columns in Inserts removed 2017-03-19 12:42:55 +03:00
Sergey Kurt
a508530f63 Allow UseLastInsertID 2017-03-19 12:39:59 +03:00
Sergey Kurt
49d052af53 FKs moved to alter caluse 2017-03-19 12:34:19 +03:00
Sergey Kurt
e6c6056353 Fixed CREATE DATABASE query 2017-03-19 00:02:14 +03:00
Sergey Kurt
ff5957e4e8 Fixed queries 2017-03-18 17:30:35 +03:00
Sergey Kurt
ccb0c9f6c8 Missed placeholder 2017-03-18 16:22:31 +03:00
Sergey Kurt
97e32c21be Default MS SQL sslmode and port for viper 2017-03-18 15:50:03 +03:00
Sergey Kurt
7162e9e927 Fixed default port for MS SQL 2017-03-18 15:47:52 +03:00