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

MySQL does not recognise LONGVARBINARY #36

Open
jnioche opened this issue Jul 14, 2010 · 1 comment
Open

MySQL does not recognise LONGVARBINARY #36

jnioche opened this issue Jul 14, 2010 · 1 comment

Comments

@jnioche
Copy link

jnioche commented Jul 14, 2010

The following SQL query is used for creating a table in NutchBase :

CREATE TABLE webpages (id VARCHAR(512) PRIMARY KEY,headers LONGVARBINARY,text VARCHAR(32000),status INTEGER,markers LONGVARBINARY,parseStatus LONGVARBINARY,modifiedTime BIGINT,score FLOAT,typ VARCHAR(32),baseUrl VARCHAR(512),content LONGVARBINARY,title VARCHAR(512),reprUrl VARCHAR(512),fetchInterval INTEGER,prevFetchTime BIGINT,inlinks LONGVARBINARY,prevSignature LONGVARBINARY,outlinks LONGVARBINARY,fetchTime BIGINT,retriesSinceFetch INTEGER,protocolStatus LONGVARBINARY,signature LONGVARBINARY,metadata LONGVARBINARY)

Unfortunately LONGVARBINARY is not recognised by mysql but 'LONG VARBINARY' is.

@dogacan
Copy link
Contributor

dogacan commented Jul 14, 2010

I only did this temporarily because I couldn't get BLOBs to work with hsqldb. Enis reverted my commit so these will be BLOBs again.

Normally, we do not map anything to LONGVARBINARY's (we map to BLOBs) but I am keeping this issue open for now, so in the future if we ever do map to LONGVARBINARYs, we do it right.

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

No branches or pull requests

2 participants