Emysql
Emysql copied to clipboard
add fun "emysql:as_maps/1"
Hi!
I added the fun "emysql:as_maps/1".
And the test result:
21 basics_SUITE conversion maps_empty_test < > 0.000s Ok
22 basics_SUITE conversion maps_single_test < > 0.000s Ok
23 basics_SUITE conversion maps_multi_test < > 0.000s Ok
The Travis Ci build's error because maps are not support in R16
Maybe it's better to enable this function only for OTP >= 17 for compatibility?
How to enable this function only for 17?
Could you have a look at this pull request??
@dcy, You can use something like
{platform_define, "^[0-9]+", maps_available}
in rebar.config and
-ifdef(maps_available).
-export([as_maps/1]).
-endif.
in code.
"-ifdef(maps_available)." works in emysql.erl but not works in basics_SUITE.erl
And what's the problem with The Travis CI: The command "source $HOME/otp/17.0-rc1/activate" failed and exited with 1 during . Your build has been stopped.
And what's the problem with The Travis CI: The command "source $HOME/otp/17.0-rc1/activate" failed and exited with 1 during . Your build has been stopped.
Try to change otp_releases
in travis.yml from
- 17.0-rc1
to
- 17.3
- 17.1
- 17.0