Commit graph

937 commits

Author SHA1 Message Date
Aaron L
1e9753091b Merge branch 'randimize-enums-with-single-value' into dev 2017-06-14 20:23:40 -07:00
Genadi Samokovarov
64206cfe07 Fix randomization for enums with single value
Hey there,

I hit a bug that panicked the tests with:

    panic: invalid argument to Intn

The problem happened, because I have a Postgres `ENUM` with a single
value, that caused a `rand.Intn(0)` call, which panics on zero.

See: https://golang.org/src/math/rand/rand.go?s=4112:4142#L129
2017-06-14 16:53:55 +03:00
Aaron L
553cc9f680 Odd circleci fix for syntax? 2017-06-08 20:58:31 -07:00
Aaron L
c69639e6d9 One more fix to circle file 2017-06-08 20:56:11 -07:00
Aaron L
226517279f Disable MSSQL tests until they run again
- The mssql image seems to have gotten an update that causes our tests
  to freeze instead of run, it seems to do with the create database
  calls but I haven't had time to look into it.
- Remove commented old code from circle file
2017-06-08 20:53:53 -07:00
Aaron L
9107c9dea1 Another instance of helper slices in eager code
- Another instance of helper slice types seeping in. Convert the slice
  when it's found as part of a singular's R struct.
- Fix #158
2017-06-08 20:50:35 -07:00
Aaron L
2168a70c4f Stop using aliases in the relationship select
- This caused issues with mysql who doesn't understand the syntax:
  "delete from x as y where y.id = ?"
2017-06-04 12:29:04 -07:00
Aaron L
466ea1f55f Fix another occurrency of XSlice cast failures
- When eager loading, we pull the values back out of the R struct, at
  this point it's possible to get the "poisoned" XSlice type that
  nothing can deal with again.
2017-06-04 12:03:57 -07:00
Aaron L
833fd04c6b Fix random typo 2017-06-04 11:19:03 -07:00
Aaron L
7e5374eb22 Bump SQL Server CI image version 2017-05-15 22:25:15 -07:00
Aaron L
696d572164 Merge branch 'viper' into dev 2017-05-15 22:01:44 -07:00
Aaron L
4896aae393 Merge branch 'sql-syntax-highlighting' into dev 2017-05-15 22:01:13 -07:00
Alex Macleod
9700787bf9 Highlight Enum SQL 2017-05-12 13:57:03 +01:00
Alex Macleod
7d38cba663 Fix viper link 2017-05-12 13:46:55 +01:00
Aaron L
17f2ec5108 Bump to 2.4.0 2017-05-08 19:19:12 -07:00
Aaron L
1d29e337e3 Merge branch 'guns/sort-tables' into dev 2017-05-08 19:14:25 -07:00
Aaron L
8e8100f5f0 Merge branch 'lbryio/mysql-uint-fix' into dev
- Fix #146
2017-05-08 19:14:02 -07:00
Alex Grintsvayg
1467b88f04 detect unsigned int columns in mysql 2017-05-08 13:10:21 -04:00
guns
e22d6cf77b Sort Table slice to ensure stable template output 2017-05-03 04:04:54 -05:00
Aaron L
070df18197 Add mailing lists 2017-05-01 19:44:52 -07:00
Aaron L
3b5ab423b3 Bump version 2017-05-01 18:41:49 -07:00
Aaron L
632b89fae0 Merge branch 'dev' 2017-05-01 18:41:02 -07:00
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 L
6a0817d37d Update benchmark section 2017-04-23 14:28:21 -07:00
Aaron
5a33894412 Add contribution guidelines 2017-04-16 11:59:13 -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
91950e711e Add slack badge to readme 2017-04-04 17:46:51 -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