RE: Failed Query
RE: Failed Query
- Subject: RE: Failed Query
- From: GILQUIN Pierre via Webobjects-dev <email@hidden>
- Date: Tue, 14 Jan 2020 12:25:02 +0000
- Ironport-sdr: a2MabdZK14uL0Hrm46J9WVNUD8Kxc1f7+k9uBK3KAxbthFEqaRYFGJ7c72xHnqNcxbvP5EN476 ZedmqUJMbHOw==
- Ironport-sdr: RJjnjoEQbxgQpmjXW13ctphDLbc5+vAKS1pvVdGQUWBuDncWRFJ4LOhQ354OpPp1xW8zOpM7tr TYdnm9swyq0A==
- Thread-topic: Failed Query
Hi,
I Dont know if your old style qualifier is correct, so you may try something
like this with the corresponding ERXKey :
myQual = Transaction.PAYMENTINTENTID.eq(paymentIntentID) ;
De : Webobjects-dev
[mailto:webobjects-dev-bounces+pierre.gilquin=email@hidden] De la
part de Gino Pacitti via Webobjects-dev
Envoyé : mardi 14 janvier 2020 13:04
À : WebObjects-Dev Mailing List List
Objet : Failed Query
Hi
Anyone had experience of queries that should return an object as the row exists
but EOF throws a NoSuchElementException?
This is some code:
Transaction transactionEo =
QueryDatabase.TransactionForPaymentIntentIdQuery(customCharge.getPayment_intent(),
_ec);
public static synchronized Transaction
TransactionForPaymentIntentIdQuery(String paymentIntentID, EOEditingContext
_ec) throws NoSuchElementException {
NSArray<String> args = new NSArray<String>(new String[]{
paymentIntentID });
EOQualifier myQual =
EOQualifier.qualifierWithQualifierFormat("purchaseIntentId = %@", args);
log.info("Qualifier " + myQual);
return Transaction.fetchRequiredTransaction(_ec, myQual);
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Failed Query (From: Gino Pacitti via Webobjects-dev <email@hidden>) |