Case Issue With Functions #64
Comments
This is fixable. I can push a fix in the next day or two. Traveling atm. |
I think I have a fix. I am changing line 263 from:
Does that seem correct? This will force all sql to use quoted identifiers. |
Do the tests pass when you run them with this in place? |
👍
|
Uh...zero passing? |
Ah, true. I didn't see any red, so I too quickly assumed passing tests. So, not sure why tests didn't run? I did run |
If you have mocha installed you should be able to just do 'mocha' from the project root |
Strange. Never had this before. And I did confirm I have an up-to-date Mocha.
|
Is there a database named "massive" defined in your Postgres cluster? |
Stupidly, that was it. I modified the connection string and it ran the tests. 43 tests failed, but all for |
This fix works for me, and all tests still pass. I'm going to merge this, but then add some tests for this case. |
@paulxtiseo - not certain what's going on with your failing tests for |
Requested as its own ticket from issue #26
I have a function in postgresql as:
Now, MassiveJS gives me a
db.getOrderByOperator()
to call. But, when I call it, it errors with[error: function getorderbyoperator(unknown) does not exist]
. True, it does not exist, but only because it's (I'm assuming) lowercasing the whole thing rather than using it as-is.Is this fixed? Fixable? Is there a workaround short of constraining to snake casing or abandoning MassiveJS altogether?
The text was updated successfully, but these errors were encountered: