How to $state.go()

What would always work is the full state definition: In doc there are defined these options, but they depend on CURRENT state: to stringAbsolute state name or relative state path. Some examples: $state.go(‘contact.detail’) – will go to the contact.detail state $state.go(‘^’) – will go to a parent state $state.go(‘^.sibling’) – will go to a sibling state $state.go(‘.child.grandchild’) … Read more

Comparing Dates in Oracle SQL

31-DEC-95 isn’t a string, nor is 20-JUN-94. They’re numbers with some extra stuff added on the end. This should be ’31-DEC-95′ or ’20-JUN-94′ – note the single quote, ‘. This will enable you to do a string comparison. However, you’re not doing a string comparison; you’re doing a date comparison. You should transform your string into a date. Either by using the built-in TO_DATE() function, … Read more

Why can’t we pass arrays to function by value?

The origin is historical. The problem is that the rule “arrays decay into pointers, when passed to a function” is simple. Copying arrays would be kind of complicated and not very clear, since the behavior would change for different parameters and different function declarations. Note that you can still do an indirect pass by value: