Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrating from mysql to p1_mysql #1067

Merged
merged 3 commits into from
Nov 9, 2016
Merged

Conversation

ferigis
Copy link
Contributor

@ferigis ferigis commented Nov 7, 2016

Proposed changes include:

  • I have changed the dependency to mysql app to p1_mysql through rebar, I also updated the tests in order to be aligned with the new library.

@@ -721,14 +721,14 @@ mysql_connect(Server, Port, Database, Username, Password) ->
-spec mysql_to_odbc({'data',_} | {'error',_} | {'updated',_})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Elvis:

Missing space right "," on line 721

@@ -721,14 +721,14 @@ mysql_connect(Server, Port, Database, Username, Password) ->
-spec mysql_to_odbc({'data',_} | {'error',_} | {'updated',_})
-> {'error',_} | {'updated',_} | {'selected',[any()],[tuple()]}.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Elvis:

Missing space right "," on line 722

@@ -721,14 +721,14 @@ mysql_connect(Server, Port, Database, Username, Password) ->
-spec mysql_to_odbc({'data',_} | {'error',_} | {'updated',_})
-> {'error',_} | {'updated',_} | {'selected',[any()],[tuple()]}.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Elvis:

Missing space right "," on line 722

@@ -721,14 +721,14 @@ mysql_connect(Server, Port, Database, Username, Password) ->
-spec mysql_to_odbc({'data',_} | {'error',_} | {'updated',_})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Elvis:

Missing space right "," on line 721

R = mysql_to_odbc(mysql_conn:fetch(State#state.db_ref, Query,
self(), ?QUERY_TIMEOUT)),
R = mysql_to_odbc(p1_mysql_conn:squery(State#state.db_ref, Query,
self(), [{timeout, ?QUERY_TIMEOUT}, {result_type, binary}])),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Elvis:

Line 601 is too long: self(), [{timeout, ?QUERY_TIMEOUT}, {result_type, binary}])),.

@@ -721,14 +721,14 @@ mysql_connect(Server, Port, Database, Username, Password) ->
-spec mysql_to_odbc({'data',_} | {'error',_} | {'updated',_})
-> {'error',_} | {'updated',_} | {'selected',[any()],[tuple()]}.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Elvis:

Missing space right "," on line 722

@@ -721,14 +721,14 @@ mysql_connect(Server, Port, Database, Username, Password) ->
-spec mysql_to_odbc({'data',_} | {'error',_} | {'updated',_})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Elvis:

Missing space right "," on line 721

@@ -721,14 +721,14 @@ mysql_connect(Server, Port, Database, Username, Password) ->
-spec mysql_to_odbc({'data',_} | {'error',_} | {'updated',_})
-> {'error',_} | {'updated',_} | {'selected',[any()],[tuple()]}.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Elvis:

Missing space right "," on line 722

%% ?INFO_MSG("MySQL, Received result~n~p~n", [R]),
R
mysql_to_odbc(p1_mysql_conn:squery(State#state.db_ref, Query,
self(), [{timeout, ?QUERY_TIMEOUT}, {result_type, binary}])),
end,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Compiler:

syntax error before: 'end'

@gadgetci
Copy link

gadgetci commented Nov 7, 2016

compiler failed with exit status: 1

-spec mysql_to_odbc({'data',_} | {'error',_} | {'updated',_})
-> {'error',_} | {'updated',_} | {'selected',[any()],[tuple()]}.
-spec mysql_to_odbc({'data', _} | {'error', _} | {'updated', _})
-> {'error', _} | {'updated', _} | {'selected', [any()], [tuple()]}.
mysql_to_odbc({updated, MySQLRes}) ->
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Compiler:

Warning: function mysql_to_odbc/1 is unused

@michalwski michalwski merged commit 79a0dd3 into master Nov 9, 2016
@michalwski michalwski deleted the ferigis.mysql_migration branch November 9, 2016 09:47
This was referenced Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants