#187 fixed sql server table hints

This commit is contained in:
Timo Westkämper 2012-06-29 23:56:00 +03:00
parent d3ce2b3b61
commit 80cfe39f3a
8 changed files with 531 additions and 32 deletions

View File

@ -14,7 +14,6 @@
package com.mysema.query.support;
import java.util.Collection;
import java.util.UUID;
import com.mysema.commons.lang.Assert;
import com.mysema.query.DefaultQueryMetadata;
@ -22,7 +21,6 @@ import com.mysema.query.JoinType;
import com.mysema.query.QueryFlag;
import com.mysema.query.QueryMetadata;
import com.mysema.query.QueryModifiers;
import com.mysema.query.types.CollectionExpression;
import com.mysema.query.types.EntityPath;
import com.mysema.query.types.Expression;
import com.mysema.query.types.ExpressionUtils;
@ -35,8 +33,6 @@ import com.mysema.query.types.Ops;
import com.mysema.query.types.OrderSpecifier;
import com.mysema.query.types.ParamExpression;
import com.mysema.query.types.Path;
import com.mysema.query.types.PathImpl;
import com.mysema.query.types.PathType;
import com.mysema.query.types.Predicate;
import com.mysema.query.types.ProjectionRole;
import com.mysema.query.types.SubQueryExpression;
@ -93,13 +89,17 @@ public class QueryMixin<T> {
if (expr instanceof Path) {
Context context = new Context();
Expression replaced = expr.accept(CollectionAnyVisitor.DEFAULT, context);
for (int i = 0; i < context.paths.size(); i++) {
Path path = context.paths.get(i).getMetadata().getParent();
Path replacement = context.replacements.get(i);
this.innerJoin(path, replacement);
}
return replaced;
} else if (expr instanceof ProjectionRole<?>) {
if (!replaced.equals(expr)) {
for (int i = 0; i < context.paths.size(); i++) {
Path path = context.paths.get(i).getMetadata().getParent();
Path replacement = context.replacements.get(i);
this.innerJoin(path, replacement);
}
return replaced;
}
}
if (expr instanceof ProjectionRole<?>) {
return convert(((ProjectionRole) expr).getProjection());
} else if (expr instanceof FactoryExpression<?> && !(expr instanceof FactoryExpressionAdapter<?>)) {
return FactoryExpressionUtils.wrap((FactoryExpression<RT>)expr);

View File

@ -0,0 +1,498 @@
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0xb76e7816, pid=22477, tid=3063302976
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode linux-x86 )
# Problematic frame:
# C [libc.so.6+0x131816] __float128+0x55d6
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0xb6805400): JavaThread "main" [_thread_in_native, id=22479, stack(0xb6914000,0xb6965000)]
siginfo:si_signo=SIGBUS: si_errno=0, si_code=2 (BUS_ADRERR), si_addr=0xb67c9000
Registers:
EAX=0xb67c6a70, EBX=0xb771b960, ECX=0x00004ec2, EDX=0x8e5b5a90
ESP=0xb6961ff4, EBP=0xb6962028, ESI=0xb67c6a37, EDI=0x00002580
EIP=0xb76e7816, EFLAGS=0x00210202, CR2=0xb67c9000
Top of Stack: (sp=0xb6961ff4)
0xb6961ff4: 8e792550 b67daabc b67d6015 8e5b5a80
0xb6962004: b67c6a65 00007472 b6805bfc 00002e73
0xb6962014: 00007265 00007472 b67daabc b68e7390
0xb6962024: 00000000 b6962058 b67d62fb b68d46e8
0xb6962034: b68e7390 00000000 8f7d86e8 00000000
0xb6962044: b6962064 ff63d65b b67daabc b69620a0
0xb6962054: b6805520 b69624c8 b67cd0f9 b68d46e8
0xb6962064: b69620a0 00000032 00000032 b69620a0
Instructions: (pc=0xb76e7816)
0xb76e77f6: e3 89 f6 8d bc 27 00 00 00 00 81 c3 60 41 03 00
0xb76e7806: 8d 40 fb 0f 28 08 31 ff 8d 49 e0 f3 0f 7f 06 5e
0xb76e7816: 66 0f 6f 54 38 10 83 e9 20 66 0f 6f 5c 38 20 66
0xb76e7826: 0f 6f e3 66 0f 3a 0f da 05 66 0f 3a 0f d1 05 8d
Register to memory mapping:
EAX=0xb67c6a70 is an unknown value
EBX=0xb771b960: <offset 0x165960> in /lib/i386-linux-gnu/libc.so.6 at 0xb75b6000
ECX=0x00004ec2 is an unknown value
EDX=0x8e5b5a90 is an unknown value
ESP=0xb6961ff4 is pointing into the stack for thread: 0xb6805400
EBP=0xb6962028 is pointing into the stack for thread: 0xb6805400
ESI=0xb67c6a37 is an unknown value
EDI=0x00002580 is an unknown value
Stack: [0xb6914000,0xb6965000], sp=0xb6961ff4, free space=311k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x131816] __float128+0x55d6
C [libzip.so+0xc2fb] ZIP_GetEntry+0x10b
C [libzip.so+0x30f9] Java_java_util_zip_ZipFile_getEntry+0xc9
J java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J
J sun.misc.URLClassPath.getResource(Ljava/lang/String;Z)Lsun/misc/Resource;
j java.net.URLClassLoader$1.run()Ljava/lang/Object;+26
v ~StubRoutines::call_stub
j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+13
j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+47
j sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+41
j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3
v ~StubRoutines::call_stub
j com.mysema.query.sql.TemplateTest.to_date(Lcom/mysema/query/types/Expression;Ljava/lang/String;)Lcom/mysema/query/types/expr/DateExpression;+20
j com.mysema.query.sql.TemplateTest.ToDate()V+16
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
j org.junit.runners.model.FrameworkMethod$1.runReflectiveCall()Ljava/lang/Object;+15
j org.junit.internal.runners.model.ReflectiveCallable.run()Ljava/lang/Object;+1
j org.junit.runners.model.FrameworkMethod.invokeExplosively(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+10
j org.junit.internal.runners.statements.InvokeMethod.evaluate()V+12
j org.junit.runners.BlockJUnit4ClassRunner.runChild(Lorg/junit/runners/model/FrameworkMethod;Lorg/junit/runner/notification/RunNotifier;)V+31
j org.junit.runners.BlockJUnit4ClassRunner.runChild(Ljava/lang/Object;Lorg/junit/runner/notification/RunNotifier;)V+6
j org.junit.runners.ParentRunner$3.run()V+12
j org.junit.runners.ParentRunner$1.schedule(Ljava/lang/Runnable;)V+1
j org.junit.runners.ParentRunner.runChildren(Lorg/junit/runner/notification/RunNotifier;)V+40
j org.junit.runners.ParentRunner.access$000(Lorg/junit/runners/ParentRunner;Lorg/junit/runner/notification/RunNotifier;)V+2
j org.junit.runners.ParentRunner$2.evaluate()V+8
j org.junit.runners.ParentRunner.run(Lorg/junit/runner/notification/RunNotifier;)V+20
j org.apache.maven.surefire.junit4.JUnit4TestSet.execute(Ljava/lang/Class;Lorg/junit/runner/notification/RunNotifier;Ljava/lang/String;)V+79
j org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(Ljava/lang/Class;Lorg/apache/maven/surefire/report/RunListener;Lorg/junit/runner/notification/RunNotifier;)V+34
j org.apache.maven.surefire.junit4.JUnit4Provider.invoke(Ljava/lang/Object;)Lorg/apache/maven/surefire/suite/RunResult;+133
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161
j org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+3
j org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(Ljava/lang/Object;)Lorg/apache/maven/surefire/suite/RunResult;+29
j org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(Ljava/lang/Object;Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;Ljava/lang/Object;)Lorg/apache/maven/surefire/suite/RunResult;+41
j org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked()Lorg/apache/maven/surefire/suite/RunResult;+33
j org.apache.maven.surefire.booter.ForkedBooter.main([Ljava/lang/String;)V+109
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x8e723400 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=22578, stack(0x8e64f000,0x8e6a0000)]
0x8e58f400 JavaThread "Timer-0" daemon [_thread_blocked, id=22577, stack(0x8e6a0000,0x8e6f1000)]
0xb6899c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=22492, stack(0x8eaf2000,0x8eb43000)]
0xb6898000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=22491, stack(0x8eb43000,0x8ebc4000)]
0xb6896000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=22490, stack(0x8ebc4000,0x8ec45000)]
0xb6894800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=22489, stack(0x8f22e000,0x8f27f000)]
0xb6886400 JavaThread "Finalizer" daemon [_thread_blocked, id=22488, stack(0x8ee45000,0x8ee96000)]
0xb6884c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=22487, stack(0x8ee96000,0x8eee7000)]
=>0xb6805400 JavaThread "main" [_thread_in_native, id=22479, stack(0xb6914000,0xb6965000)]
Other Threads:
0xb6881000 VMThread [stack: 0x8eee7000,0x8ef68000] [id=22484]
0xb689b800 WatcherThread [stack: 0x8ea71000,0x8eaf2000] [id=22493]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 103360K, used 55477K [0xa8c20000, 0xb0ef0000, 0xb36c0000)
eden space 102720K, 53% used [0xa8c20000,0xac1bb470,0xaf070000)
from space 640K, 91% used [0xb0e50000,0xb0ee2030,0xb0ef0000)
to space 3776K, 0% used [0xb0790000,0xb0790000,0xb0b40000)
PSOldGen total 174784K, used 3793K [0x936c0000, 0x9e170000, 0xa8c20000)
object space 174784K, 2% used [0x936c0000,0x93a745c8,0x9e170000)
PSPermGen total 22528K, used 22407K [0x8f6c0000, 0x90cc0000, 0x936c0000)
object space 22528K, 99% used [0x8f6c0000,0x90ca1c88,0x90cc0000)
Code Cache [0xb3788000, 0xb3ab8000, 0xb6788000)
total_blobs=1235 nmethods=1007 adapters=181 free_code_cache=47313536 largest_free_block=67904
Dynamic libraries:
08048000-08052000 r-xp 00000000 fc:02 3802373 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java
08052000-08053000 rwxp 00009000 fc:02 3802373 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java
08511000-09a43000 rwxp 00000000 00:00 0 [heap]
8cd00000-8cdfc000 rwxp 00000000 00:00 0
8cdfc000-8ce00000 ---p 00000000 00:00 0
8ce00000-8ceae000 rwxp 00000000 00:00 0
8ceae000-8cf00000 ---p 00000000 00:00 0
8cf00000-8cff4000 rwxp 00000000 00:00 0
8cff4000-8d000000 ---p 00000000 00:00 0
8d000000-8d100000 rwxp 00000000 00:00 0
8d100000-8d1ff000 rwxp 00000000 00:00 0
8d1ff000-8d200000 ---p 00000000 00:00 0
8d200000-8d2e3000 rwxp 00000000 00:00 0
8d2e3000-8d300000 ---p 00000000 00:00 0
8d300000-8d3fb000 rwxp 00000000 00:00 0
8d3fb000-8d400000 ---p 00000000 00:00 0
8d400000-8d4fb000 rwxp 00000000 00:00 0
8d4fb000-8d500000 ---p 00000000 00:00 0
8d500000-8d5fe000 rwxp 00000000 00:00 0
8d5fe000-8d600000 ---p 00000000 00:00 0
8d700000-8d7fd000 rwxp 00000000 00:00 0
8d7fd000-8d800000 ---p 00000000 00:00 0
8d8f6000-8d8f9000 r-xs 00027000 fc:02 2362729 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/ext/sunjce_provider.jar
8d8f9000-8d900000 r-xs 00094000 fc:02 2362728 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jsse.jar
8d900000-8d9fd000 rwxp 00000000 00:00 0
8d9fd000-8da00000 ---p 00000000 00:00 0
8da00000-8daf7000 rwxp 00000000 00:00 0
8daf7000-8db00000 ---p 00000000 00:00 0
8db00000-8dbf7000 rwxp 00000000 00:00 0
8dbf7000-8dc00000 ---p 00000000 00:00 0
8dc00000-8dcf3000 rwxp 00000000 00:00 0
8dcf3000-8dd00000 ---p 00000000 00:00 0
8dd00000-8ddf9000 rwxp 00000000 00:00 0
8ddf9000-8de00000 ---p 00000000 00:00 0
8de00000-8defa000 rwxp 00000000 00:00 0
8defa000-8df00000 ---p 00000000 00:00 0
8df00000-8e0fa000 rwxp 00000000 00:00 0
8e0fa000-8e100000 ---p 00000000 00:00 0
8e100000-8e1e8000 rwxp 00000000 00:00 0
8e1e8000-8e200000 ---p 00000000 00:00 0
8e200000-8e2fb000 rwxp 00000000 00:00 0
8e2fb000-8e300000 ---p 00000000 00:00 0
8e300000-8e3fb000 rwxp 00000000 00:00 0
8e3fb000-8e400000 ---p 00000000 00:00 0
8e400000-8e4f9000 rwxp 00000000 00:00 0
8e4f9000-8e500000 ---p 00000000 00:00 0
8e500000-8e5fa000 rwxp 00000000 00:00 0
8e5fa000-8e600000 ---p 00000000 00:00 0
8e62f000-8e636000 r-xp 00000000 fc:02 3802409 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libnio.so
8e636000-8e637000 rwxp 00006000 fc:02 3802409 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libnio.so
8e637000-8e63a000 r-xs 00013000 fc:02 2362732 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/jce.jar
8e63a000-8e64e000 r-xp 00000000 fc:02 3802408 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libnet.so
8e64e000-8e64f000 rwxp 00013000 fc:02 3802408 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libnet.so
8e64f000-8e652000 ---p 00000000 00:00 0
8e652000-8e6a0000 rwxp 00000000 00:00 0
8e6a0000-8e6a3000 ---p 00000000 00:00 0
8e6a3000-8e6f1000 rwxp 00000000 00:00 0
8e6f1000-8e6f7000 r-xp 00000000 fc:02 3802410 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libmanagement.so
8e6f7000-8e6f8000 rwxp 00005000 fc:02 3802410 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libmanagement.so
8e6f8000-8e700000 r-xs 00115000 fc:02 2360026 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/resources.jar
8e700000-8e800000 rwxp 00000000 00:00 0
8e800000-8e8fd000 rwxp 00000000 00:00 0
8e8fd000-8e900000 ---p 00000000 00:00 0
8e900000-8e9fc000 rwxp 00000000 00:00 0
8e9fc000-8ea00000 ---p 00000000 00:00 0
8ea00000-8ea02000 r-xs 00007000 fc:02 1051432 /home/tiwe/.m2/repository/org/apache/maven/surefire/surefire-junit4/2.10/surefire-junit4-2.10.jar
8ea02000-8ea04000 r-xs 00007000 fc:02 1837229 /home/tiwe/.m2/repository/org/objenesis/objenesis/1.2/objenesis-1.2.jar
8ea04000-8ea0a000 r-xs 00049000 fc:02 1837231 /home/tiwe/.m2/repository/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar
8ea0a000-8ea10000 r-xs 00034000 fc:02 944107 /home/tiwe/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar
8ea10000-8ea12000 r-xs 0000d000 fc:02 1579712 /home/tiwe/.m2/repository/jdepend/jdepend/2.9.1/jdepend-2.9.1.jar
8ea12000-8ea17000 r-xs 00035000 fc:02 1980978 /home/tiwe/.m2/repository/com/mysema/querydsl/querydsl-core/2.7.0.BUILD-SNAPSHOT/querydsl-core-2.7.0.BUILD-SNAPSHOT-tests.jar
8ea17000-8ea1c000 r-xs 00309000 fc:02 1329990 /home/tiwe/.m2/repository/org/xerial/sqlite-jdbc/3.7.2/sqlite-jdbc-3.7.2.jar
8ea1c000-8ea20000 r-xs 0002d000 fc:02 1051843 /home/tiwe/.m2/repository/cubrid/cubrid-jdbc/8.4.1.2032/cubrid-jdbc-8.4.1.2032.jar
8ea20000-8ea2a000 r-xs 0012c000 fc:02 3418065 /home/tiwe/.m2/repository/com/h2database/h2/1.3.164/h2-1.3.164.jar
8ea2a000-8ea3b000 r-xs 001d5000 fc:02 2369058 /home/tiwe/.m2/repository/com/oracle/ojdbc6/11.1.0.7.0/ojdbc6-11.1.0.7.0.jar
8ea3b000-8ea63000 r-xs 00265000 fc:02 4465972 /home/tiwe/.m2/repository/org/apache/derby/derby/10.8.2.2/derby-10.8.2.2.jar
8ea63000-8ea71000 r-xs 00142000 fc:02 4465987 /home/tiwe/.m2/repository/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.jar
8ea71000-8ea72000 ---p 00000000 00:00 0
8ea72000-8eaf2000 rwxp 00000000 00:00 0
8eaf2000-8eaf5000 ---p 00000000 00:00 0
8eaf5000-8eb43000 rwxp 00000000 00:00 0
8eb43000-8eb46000 ---p 00000000 00:00 0
8eb46000-8ebc4000 rwxp 00000000 00:00 0
8ebc4000-8ebc7000 ---p 00000000 00:00 0
8ebc7000-8ec45000 rwxp 00000000 00:00 0
8ec45000-8ee45000 r-xp 00000000 fc:02 655431 /usr/lib/locale/locale-archive
8ee45000-8ee48000 ---p 00000000 00:00 0
8ee48000-8ee96000 rwxp 00000000 00:00 0
8ee96000-8ee99000 ---p 00000000 00:00 0
8ee99000-8eee7000 rwxp 00000000 00:00 0
8eee7000-8eee8000 ---p 00000000 00:00 0
8eee8000-8ef68000 rwxp 00000000 00:00 0
8ef68000-8f100000 r-xs 03029000 fc:02 2360121 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/rt.jar
8f100000-8f1f4000 rwxp 00000000 00:00 0
8f1f4000-8f200000 ---p 00000000 00:00 0
8f200000-8f203000 r-xs 00019000 fc:02 1975777 /home/tiwe/.m2/repository/org/easymock/easymock/3.0/easymock-3.0.jar
8f203000-8f206000 r-xs 00048000 fc:02 923717 /home/tiwe/.m2/repository/net/sourceforge/jtds/jtds/1.2.4/jtds-1.2.4.jar
8f206000-8f20d000 r-xs 000ba000 fc:02 3554933 /home/tiwe/.m2/repository/mysql/mysql-connector-java/5.1.18/mysql-connector-java-5.1.18.jar
8f20d000-8f22e000 r-xs 00172000 fc:02 2763535 /home/tiwe/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar
8f22e000-8f231000 ---p 00000000 00:00 0
8f231000-8f27f000 rwxp 00000000 00:00 0
8f27f000-8f280000 ---p 00000000 00:00 0
8f280000-8f300000 rwxp 00000000 00:00 0
8f300000-8f321000 rwxp 00000000 00:00 0
8f321000-8f400000 ---p 00000000 00:00 0
8f400000-8f406000 r-xs 0007e000 fc:02 1056365 /home/tiwe/.m2/repository/postgresql/postgresql/9.1-901.jdbc4/postgresql-9.1-901.jdbc4.jar
8f406000-8f407000 r-xs 00000000 fc:02 2755583 /home/tiwe/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar
8f407000-8f410000 r-xs 0006d000 fc:02 2359373 /home/tiwe/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar
8f410000-8f41f000 r-xs 00074000 fc:02 936054 /home/tiwe/.m2/repository/joda-time/joda-time/1.6/joda-time-1.6.jar
8f41f000-8f453000 rwxp 00000000 00:00 0
8f453000-8f454000 ---p 00000000 00:00 0
8f454000-8f4df000 rwxp 00000000 00:00 0
8f4df000-8f4f4000 rwxp 00000000 00:00 0
8f4f4000-8f54a000 rwxp 00000000 00:00 0
8f54a000-8f59f000 rwxp 00000000 00:00 0
8f59f000-8f5aa000 rwxp 00000000 00:00 0
8f5aa000-8f5bf000 rwxp 00000000 00:00 0
8f5bf000-8f615000 rwxp 00000000 00:00 0
8f615000-8f669000 rwxp 00000000 00:00 0
8f669000-8f6ac000 rwxp 00000000 00:00 0
8f6ac000-8f6bc000 ---p 00000000 00:00 0
8f6bc000-8f6bf000 rwxp 00000000 00:00 0
8f6bf000-90cc0000 rwxp 00000000 00:00 0
90cc0000-936c0000 rwxp 00000000 00:00 0
936c0000-9e170000 rwxp 00000000 00:00 0
9e170000-a8c20000 rwxp 00000000 00:00 0
a8c20000-b0ef0000 rwxp 00000000 00:00 0
b0ef0000-b2f30000 ---p 00000000 00:00 0
b2f30000-b36c0000 rwxp 00000000 00:00 0
b36c0000-b36c1000 r-xs 00002000 fc:02 2359379 /home/tiwe/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar
b36c1000-b36c8000 r-xs 0003e000 fc:02 936042 /home/tiwe/.m2/repository/cglib/cglib/2.2/cglib-2.2.jar
b36c8000-b36d5000 rwxp 00000000 00:00 0
b36d5000-b3788000 rwxp 00000000 00:00 0
b3788000-b3ab8000 rwxp 00000000 00:00 0
b3ab8000-b6788000 rwxp 00000000 00:00 0
b6788000-b6793000 r-xp 00000000 fc:02 27261 /lib/i386-linux-gnu/libnss_files-2.15.so
b6793000-b6794000 r-xp 0000a000 fc:02 27261 /lib/i386-linux-gnu/libnss_files-2.15.so
b6794000-b6795000 rwxp 0000b000 fc:02 27261 /lib/i386-linux-gnu/libnss_files-2.15.so
b6795000-b679f000 r-xp 00000000 fc:02 27263 /lib/i386-linux-gnu/libnss_nis-2.15.so
b679f000-b67a0000 r-xp 00009000 fc:02 27263 /lib/i386-linux-gnu/libnss_nis-2.15.so
b67a0000-b67a1000 rwxp 0000a000 fc:02 27263 /lib/i386-linux-gnu/libnss_nis-2.15.so
b67a1000-b67b7000 r-xp 00000000 fc:02 27258 /lib/i386-linux-gnu/libnsl-2.15.so
b67b7000-b67b8000 r-xp 00015000 fc:02 27258 /lib/i386-linux-gnu/libnsl-2.15.so
b67b8000-b67b9000 rwxp 00016000 fc:02 27258 /lib/i386-linux-gnu/libnsl-2.15.so
b67b9000-b67bb000 rwxp 00000000 00:00 0
b67bb000-b67bd000 r-xs 00005000 fc:02 2359374 /home/tiwe/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
b67bd000-b67c0000 r-xs 00009000 fc:02 1707861 /home/tiwe/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar
b67c0000-b67c1000 r-xs 0000a000 fc:02 936045 /home/tiwe/.m2/repository/asm/asm/3.1/asm-3.1.jar
b67c1000-b67c2000 r-xs 00002000 fc:02 1052852 /home/tiwe/.m2/repository/com/mysema/commons/mysema-commons-lang/0.2.2/mysema-commons-lang-0.2.2.jar
b67c2000-b67ca000 r-xs 00053000 fc:02 1980973 /home/tiwe/.m2/repository/com/mysema/querydsl/querydsl-core/2.7.0.BUILD-SNAPSHOT/querydsl-core-2.7.0.BUILD-SNAPSHOT.jar
b67ca000-b67d9000 r-xp 00000000 fc:02 3802402 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libzip.so
b67d9000-b67db000 rwxp 0000e000 fc:02 3802402 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libzip.so
b67db000-b67fe000 r-xp 00000000 fc:02 3802400 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libjava.so
b67fe000-b6800000 rwxp 00023000 fc:02 3802400 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libjava.so
b6800000-b68f9000 rwxp 00000000 00:00 0
b68f9000-b6900000 ---p 00000000 00:00 0
b6900000-b6903000 r-xs 00006000 fc:02 1065740 /home/tiwe/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
b6903000-b6908000 r-xs 00023000 fc:02 1051404 /home/tiwe/.m2/repository/org/apache/maven/surefire/surefire-api/2.10/surefire-api-2.10.jar
b6908000-b690a000 r-xs 00007000 fc:02 1051385 /home/tiwe/.m2/repository/org/apache/maven/surefire/surefire-booter/2.10/surefire-booter-2.10.jar
b690a000-b690b000 r-xs 00000000 fc:02 3415040 /home/tiwe/work/querydsl/querydsl-sql/target/surefire/surefirebooter2452338747982149470.jar (deleted)
b690b000-b6912000 r-xp 00000000 fc:02 27268 /lib/i386-linux-gnu/librt-2.15.so
b6912000-b6913000 r-xp 00006000 fc:02 27268 /lib/i386-linux-gnu/librt-2.15.so
b6913000-b6914000 rwxp 00007000 fc:02 27268 /lib/i386-linux-gnu/librt-2.15.so
b6914000-b6917000 ---p 00000000 00:00 0
b6917000-b6965000 rwxp 00000000 00:00 0
b6965000-b698f000 r-xp 00000000 fc:02 27256 /lib/i386-linux-gnu/libm-2.15.so
b698f000-b6990000 r-xp 00029000 fc:02 27256 /lib/i386-linux-gnu/libm-2.15.so
b6990000-b6991000 rwxp 0002a000 fc:02 27256 /lib/i386-linux-gnu/libm-2.15.so
b6991000-b7143000 r-xp 00000000 fc:02 3802390 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server/libjvm.so
b7143000-b7197000 rwxp 007b1000 fc:02 3802390 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server/libjvm.so
b7197000-b75b6000 rwxp 00000000 00:00 0
b75b6000-b7755000 r-xp 00000000 fc:02 27252 /lib/i386-linux-gnu/libc-2.15.so
b7755000-b7757000 r-xp 0019f000 fc:02 27252 /lib/i386-linux-gnu/libc-2.15.so
b7757000-b7758000 rwxp 001a1000 fc:02 27252 /lib/i386-linux-gnu/libc-2.15.so
b7758000-b775b000 rwxp 00000000 00:00 0
b775b000-b775e000 r-xp 00000000 fc:02 27255 /lib/i386-linux-gnu/libdl-2.15.so
b775e000-b775f000 r-xp 00002000 fc:02 27255 /lib/i386-linux-gnu/libdl-2.15.so
b775f000-b7760000 rwxp 00003000 fc:02 27255 /lib/i386-linux-gnu/libdl-2.15.so
b7760000-b7767000 r-xp 00000000 fc:02 3802401 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/jli/libjli.so
b7767000-b7769000 rwxp 00006000 fc:02 3802401 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/jli/libjli.so
b7769000-b776a000 rwxp 00000000 00:00 0
b776a000-b7781000 r-xp 00000000 fc:02 27266 /lib/i386-linux-gnu/libpthread-2.15.so
b7781000-b7782000 r-xp 00016000 fc:02 27266 /lib/i386-linux-gnu/libpthread-2.15.so
b7782000-b7783000 rwxp 00017000 fc:02 27266 /lib/i386-linux-gnu/libpthread-2.15.so
b7783000-b7785000 rwxp 00000000 00:00 0
b7785000-b7786000 r-xp 002c5000 fc:02 655431 /usr/lib/locale/locale-archive
b7786000-b778e000 rwxs 00000000 fc:02 290451 /tmp/hsperfdata_tiwe/22477
b778e000-b7795000 r-xp 00000000 fc:02 27259 /lib/i386-linux-gnu/libnss_compat-2.15.so
b7795000-b7796000 r-xp 00006000 fc:02 27259 /lib/i386-linux-gnu/libnss_compat-2.15.so
b7796000-b7797000 rwxp 00007000 fc:02 27259 /lib/i386-linux-gnu/libnss_compat-2.15.so
b7797000-b7798000 rwxp 00000000 00:00 0
b7798000-b7799000 r-xp 00000000 00:00 0
b7799000-b77a4000 r-xp 00000000 fc:02 3802399 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libverify.so
b77a4000-b77a5000 rwxp 0000b000 fc:02 3802399 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/libverify.so
b77a5000-b77a7000 rwxp 00000000 00:00 0
b77a7000-b77a8000 r-xp 00000000 00:00 0 [vdso]
b77a8000-b77c8000 r-xp 00000000 fc:02 27249 /lib/i386-linux-gnu/ld-2.15.so
b77c8000-b77c9000 r-xp 0001f000 fc:02 27249 /lib/i386-linux-gnu/ld-2.15.so
b77c9000-b77ca000 rwxp 00020000 fc:02 27249 /lib/i386-linux-gnu/ld-2.15.so
bfb42000-bfb63000 rwxp 00000000 00:00 0 [stack]
VM Arguments:
jvm_args: -Xms256m -Xmx512m
java_command: /home/tiwe/work/querydsl/querydsl-sql/target/surefire/surefirebooter2452338747982149470.jar /home/tiwe/work/querydsl/querydsl-sql/target/surefire/surefire4849662485765641856tmp /home/tiwe/work/querydsl/querydsl-sql/target/surefire/surefire3647559177586088817tmp
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/cubrid/bin
LD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:
SHELL=/bin/bash
DISPLAY=:0
Signal Handlers:
SIGSEGV: [libjvm.so+0x725510], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x725510], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x5dff20], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x5dff20], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x5dff20], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x5dff20], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x5e3160], sa_mask[0]=0x00000004, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x5e2d40], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0x5e2d40], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x5e2d40], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x5e2d40], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
--------------- S Y S T E M ---------------
OS:wheezy/sid
uname:Linux 3.2.0-25-generic-pae #40-Ubuntu SMP Wed May 23 22:11:24 UTC 2012 i686
libc:glibc 2.15 NPTL 2.15
rlimit: STACK 8192k, CORE 0k, NPROC 31214, NOFILE 4000, AS infinity
load average:2.79 2.15 1.65
/proc/meminfo:
MemTotal: 4016356 kB
MemFree: 690164 kB
Buffers: 118600 kB
Cached: 889132 kB
SwapCached: 43968 kB
Active: 2153796 kB
Inactive: 1034856 kB
Active(anon): 1891388 kB
Inactive(anon): 789764 kB
Active(file): 262408 kB
Inactive(file): 245092 kB
Unevictable: 20 kB
Mlocked: 20 kB
HighTotal: 3174832 kB
HighFree: 463744 kB
LowTotal: 841524 kB
LowFree: 226420 kB
SwapTotal: 1949692 kB
SwapFree: 756180 kB
Dirty: 1320 kB
Writeback: 0 kB
AnonPages: 2144176 kB
Mapped: 173952 kB
Shmem: 500224 kB
Slab: 82612 kB
SReclaimable: 55820 kB
SUnreclaim: 26792 kB
KernelStack: 7416 kB
PageTables: 25656 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 3957868 kB
Committed_AS: 9299864 kB
VmallocTotal: 122880 kB
VmallocUsed: 19884 kB
VmallocChunk: 62288 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 10232 kB
DirectMap2M: 903168 kB
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
/proc/cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU P9400 @ 2.40GHz
stepping : 10
microcode : 0xa07
cpu MHz : 800.000
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dts tpr_shadow vnmi flexpriority
bogomips : 4787.92
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU P9400 @ 2.40GHz
stepping : 10
microcode : 0xa07
cpu MHz : 2401.000
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dts tpr_shadow vnmi flexpriority
bogomips : 4787.96
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Memory: 4k page, physical 4016356k(690164k free), swap 1949692k(756180k free)
vm_info: Java HotSpot(TM) Server VM (20.1-b02) for linux-x86 JRE (1.6.0_26-b03), built on May 4 2011 01:04:10 by "java_re" with gcc 3.2.1-7a (J2SE release)
time: Fri Jun 29 23:41:06 2012
elapsed time: 61 seconds

View File

@ -20,7 +20,7 @@ import java.util.Iterator;
import java.util.List;
import com.mysema.query.DefaultQueryMetadata;
import com.mysema.query.QueryFlag;
import com.mysema.query.JoinFlag;
import com.mysema.query.QueryMetadata;
import com.mysema.query.sql.AbstractSQLQuery;
import com.mysema.query.sql.Configuration;
@ -73,8 +73,8 @@ public class SQLServerQuery extends AbstractSQLQuery<SQLServerQuery> implements
while (it.hasNext()) {
tableHintsStr.append(", ").append(it.next());
}
tableHintsStr.append(") ");
addFlag(QueryFlag.Position.BEFORE_FILTERS, tableHintsStr.toString());
tableHintsStr.append(")");
addJoinFlag(tableHintsStr.toString(), JoinFlag.Position.END);
}
return this;
}

View File

@ -115,14 +115,6 @@ public class SumOver<A extends Number & Comparable<? super A>> extends MutableEx
return this;
}
/**
* use orderBy instead
*/
@Deprecated
public SumOver<A> order(Expression<?>... orderBy) {
return orderBy(orderBy);
}
public SumOver<A> partition(Expression<?> partitionBy) {
value = null;
this.partitionBy = partitionBy;

View File

@ -25,7 +25,6 @@ import static com.mysema.query.Target.H2;
import static com.mysema.query.Target.HSQLDB;
import static com.mysema.query.Target.MYSQL;
import static com.mysema.query.Target.ORACLE;
import static com.mysema.query.Target.POSTGRES;
import static com.mysema.query.Target.SQLITE;
import static com.mysema.query.Target.SQLSERVER;
import static org.junit.Assert.assertEquals;
@ -90,7 +89,6 @@ import com.mysema.query.types.query.NumberSubQuery;
import com.mysema.query.types.query.SimpleSubQuery;
import com.mysema.query.types.template.NumberTemplate;
import com.mysema.testutil.ExcludeIn;
import com.mysema.testutil.IncludeIn;
import com.mysema.testutil.Label;
public abstract class SelectBaseTest extends AbstractBaseTest{
@ -368,7 +366,7 @@ public abstract class SelectBaseTest extends AbstractBaseTest{
}
@Test
@ExcludeIn({H2, SQLITE, DERBY, MYSQL})
@ExcludeIn({H2, SQLITE, DERBY, CUBRID, MYSQL})
public void Full_Join() throws SQLException {
query().from(employee).fullJoin(employee2)
.on(employee.superiorIdKey.on(employee2))

View File

@ -163,8 +163,8 @@ public class SelectOracleTest extends SelectBaseTest {
.list(
employee.lastname,
employee.salary,
sumOver(employee.salary).partition(employee.superiorId).order(employee.lastname, employee.salary),
sumOver(employee.salary).order(employee.superiorId, employee.salary),
sumOver(employee.salary).partition(employee.superiorId).orderBy(employee.lastname, employee.salary),
sumOver(employee.salary).orderBy(employee.superiorId, employee.salary),
sumOver(employee.salary));
// shorter version
@ -172,8 +172,8 @@ public class SelectOracleTest extends SelectBaseTest {
qo().from(e)
.orderBy(e.salary.asc(), e.superiorId.asc())
.list(e.lastname, e.salary,
sumOver(e.salary).partition(e.superiorId).order(e.lastname, e.salary),
sumOver(e.salary).order(e.superiorId, e.salary),
sumOver(e.salary).partition(e.superiorId).orderBy(e.lastname, e.salary),
sumOver(e.salary).orderBy(e.superiorId, e.salary),
sumOver(e.salary));
}

View File

@ -27,7 +27,7 @@ public class SQLServerQueryTest {
QSurvey survey = QSurvey.survey;
SQLServerQuery query = new SQLServerQuery(null, new SQLServerTemplates());
query.from(survey).tableHints(SQLServerTableHints.NOWAIT).where(survey.name.isNull());
assertEquals("from SURVEY SURVEY with (NOWAIT) \nwhere SURVEY.NAME is null", query.toString());
assertEquals("from SURVEY SURVEY with (NOWAIT)\nwhere SURVEY.NAME is null", query.toString());
}
@Test
@ -35,7 +35,18 @@ public class SQLServerQueryTest {
QSurvey survey = QSurvey.survey;
SQLServerQuery query = new SQLServerQuery(null, new SQLServerTemplates());
query.from(survey).tableHints(SQLServerTableHints.NOWAIT, SQLServerTableHints.NOLOCK).where(survey.name.isNull());
assertEquals("from SURVEY SURVEY with (NOWAIT, NOLOCK) \nwhere SURVEY.NAME is null", query.toString());
assertEquals("from SURVEY SURVEY with (NOWAIT, NOLOCK)\nwhere SURVEY.NAME is null", query.toString());
}
@Test
public void TableHints_Multiple2() {
QSurvey survey = QSurvey.survey;
QSurvey survey2 = new QSurvey("survey2");
SQLServerQuery query = new SQLServerQuery(null, new SQLServerTemplates());
query.from(survey).tableHints(SQLServerTableHints.NOWAIT)
.from(survey2).tableHints(SQLServerTableHints.NOLOCK)
.where(survey.name.isNull());
assertEquals("from SURVEY SURVEY with (NOWAIT), SURVEY survey2 with (NOLOCK)\nwhere SURVEY.NAME is null", query.toString());
}
}

View File

@ -32,7 +32,7 @@ public class OracleGrammarTest {
@Test
public void SumOver(){
NumberPath<Integer> intPath = new NumberPath<Integer>(Integer.class, "intPath");
SumOver<Integer> sumOver = OracleGrammar.sumOver(intPath).order(intPath).partition(intPath);
SumOver<Integer> sumOver = OracleGrammar.sumOver(intPath).orderBy(intPath).partition(intPath);
assertEquals("sum(intPath) over (partition by intPath order by intPath)", sumOver.toString());
}